Skip to content

expert mode: Avoid exception in log file

Benoit Formet requested to merge main-avoid-exception into master

Use a ternary operator to avoid a catched exception to appear in the log file.

2020-01-30 10:08:38,196 isa_brake exceptions ERROR : 
Traceback (most recent call last):
  File "/users/blissadm/local/bliss.git/bliss/shell/cli/start_bliss_repl.py", line 27, in main
    expert_error_report=sys.argv[3] == "1",
IndexError: list index out of range

During handling of the above exception, another exception occurred:
[...]
Edited by Benoit Formet

Merge request reports