Skip to content

Commit

Permalink
Remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
tfiedor committed Nov 6, 2023
1 parent 4b07985 commit ea6cdc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions perun/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,8 @@ def launch_cli_safely() -> None:

reported_error = error_name + ": " + str(catched_exception)
perun_log.error("Unexpected error: {}".format(reported_error), recoverable=True)
#with helpers.SuppressedExceptions(Exception):
cli_helpers.generate_cli_dump(reported_error, catched_exception, stdout_log, stderr_log)
with helpers.SuppressedExceptions(Exception):
cli_helpers.generate_cli_dump(reported_error, catched_exception, stdout_log, stderr_log)


def launch_cli() -> None:
Expand Down
2 changes: 0 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2375,8 +2375,6 @@ def raise_exception():
cli.launch_cli()
out, err = capsys.readouterr()
assert "Unexpected error: Exception: Something happened" in err
print(f"{err=}")
print(f"{out=}")
assert "Saved dump" in out

cli.DEV_MODE = True
Expand Down

0 comments on commit ea6cdc9

Please sign in to comment.