Skip to content

Commit

Permalink
FIX: dict bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvi-ranawat committed Aug 12, 2021
1 parent 7a63aab commit 4196e83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def from_database(cls, name, database):
dict_.pop('running', False)
dict_.pop('_explicit_stop', False)
_ = RunnerData.from_data_dict(dict_['pre_runner_data'])
dict_.pre_runner_data = _
dict_['pre_runner_data'] = _

return cls(name=name,
database=database,
Expand Down Expand Up @@ -275,10 +275,10 @@ def _update_status_running(self):
if isinstance(atoms, list):
atoms = atoms[0]
assert isinstance(atoms, Atoms)
except Exception:
except Exception as e:
status = 'failed'
log_msg += ('{}\n Unpickling failed\n'
''.format(datetime.now()))
log_msg += ('{}\n Unpickling failed: {}\n'
''.format(datetime.now(), e))
# run post-tasks
if status == 'done':
logger.debug('status: done')
Expand Down

0 comments on commit 4196e83

Please sign in to comment.