Skip to content

Commit

Permalink
Merge pull request #108 from akretz/fs_fix
Browse files Browse the repository at this point in the history
Fix exception with FileStorage when run is not completed
  • Loading branch information
chovanecm committed Nov 16, 2018
2 parents 47186ea + e89dd44 commit 719f9ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sacredboard/app/data/filestorage/rundao.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ def _create_run(run_id, runjson, configjson, infojson):
# TODO probably want a smarter way of detecting
# which values have type "time."
for k in ["start_time", "stop_time", "heartbeat"]:
runjson[k] = datetime.datetime.strptime(runjson[k],
'%Y-%m-%dT%H:%M:%S.%f')
if k in runjson:
runjson[k] = datetime.datetime.strptime(runjson[k],
'%Y-%m-%dT%H:%M:%S.%f')
return runjson


Expand Down

0 comments on commit 719f9ec

Please sign in to comment.