Skip to content

Commit

Permalink
Fix variable with same name as module
Browse files Browse the repository at this point in the history
  • Loading branch information
philbull committed Jul 20, 2018
1 parent d4469b2 commit 69b75f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hera_pspec/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ def job_monitor(run_func, iterator, action_name, M=map, lf=None, maxiter=1,

# run function over jobs
exit_codes = np.array(M(run_func, iterator))
time = datetime.utcnow()
tnow = datetime.utcnow()

# check for len-0
if len(exit_codes) == 0:
Expand All @@ -837,7 +837,7 @@ def job_monitor(run_func, iterator, action_name, M=map, lf=None, maxiter=1,
if np.all(exit_codes != 0):
# everything failed, raise error
log("\n{}\nAll {} jobs failed w/ exit codes\n {}: {}\n".format("-"*60,
action_name, exit_codes, time),
action_name, exit_codes, tnow),
f=lf, verbose=verbose)
raise ValueError("All {} jobs failed".format(action_name))

Expand Down

0 comments on commit 69b75f9

Please sign in to comment.