[minor] removed old unused code
This commit is contained in:
parent
777981e8c6
commit
20dc5a132a
@ -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])
|
||||||
|
Loading…
Reference in New Issue
Block a user