[minor] removed old unused code

This commit is contained in:
Marcel Paffrath 2019-04-16 15:28:18 +02:00
parent 777981e8c6
commit 20dc5a132a

View File

@ -67,8 +67,10 @@ class Event(ObsPyEvent):
notesfile = self.get_notes_path() notesfile = self.get_notes_path()
if os.path.isfile(notesfile): if os.path.isfile(notesfile):
with open(notesfile) as infile: with open(notesfile) as infile:
path = str(infile.readlines()[0].split('\n')[0]) lines = infile.readlines()
text = '[eventInfo: ' + path + ']' if not lines:
return
text = lines[0]
self.addNotes(text) self.addNotes(text)
try: try:
datetime = UTCDateTime(path.split('/')[-1]) datetime = UTCDateTime(path.split('/')[-1])