mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-06 23:01:36 +01:00
[git fast commit] 10. Feb 2019 - 11:59:32
This commit is contained in:
@@ -188,7 +188,7 @@ def create_event(etype,line,timestamp):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise Exception("Cannot create event from logline. (etype was: '{}')".format(etype))
|
raise RuntimeError("Cannot create event from logline. (etype was: '{}')".format(etype))
|
||||||
|
|
||||||
def parseDate(l):
|
def parseDate(l):
|
||||||
if ": L " in l.split("0x42")[0]:
|
if ": L " in l.split("0x42")[0]:
|
||||||
@@ -207,7 +207,7 @@ def parse_line_to_event(l):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
print(" ---- NO TIME ---- | WARNING: Failed to parse time for event, SKIP")
|
print(" ---- NO TIME ---- | WARNING: Failed to parse time for event, SKIP")
|
||||||
return None
|
return None
|
||||||
except IndexError as e:
|
except RuntimeError as e:
|
||||||
print("Failed to parse Event in line, skipping: {}".format(str(e)))
|
print("Failed to parse Event in line, skipping: {}".format(str(e)))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user