PyLint 1.5 fixes
This commit is contained in:
parent
01203c7c4c
commit
a301d869d7
32 changed files with 96 additions and 94 deletions
|
@ -73,7 +73,7 @@ def row_to_state(row):
|
|||
def row_to_event(row):
|
||||
""" Convert a databse row to an event. """
|
||||
try:
|
||||
return Event(row[1], json.loads(row[2]), EventOrigin[row[3].lower()],
|
||||
return Event(row[1], json.loads(row[2]), EventOrigin(row[3]),
|
||||
date_util.utc_from_timestamp(row[5]))
|
||||
except ValueError:
|
||||
# When json.loads fails
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue