Skip to content
Snippets Groups Projects
Commit 3941cd72 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

It is sys.exit() not os.exit()!

parent aed37c30
No related branches found
No related tags found
No related merge requests found
......@@ -402,7 +402,7 @@ data = data[1:, :]
# Exit if no data.
if data.size == 0:
print(("# Rank ", rank, " has no tasks"))
os.exit(1)
sys.exit(1)
start_t = float(tic_step)
data[:, ticcol] -= start_t
......
  • Developer

    There's also the builtin exit() that does not require either sys or os.

  • Developer

    (I just learned that sys.exit is better practice than exit, so carry on :p)

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment