Skip to content

Commit

Permalink
Uses a more specific exception type (subprocess.CalledProcessError)
Browse files Browse the repository at this point in the history
  • Loading branch information
anitacaron committed Oct 14, 2024
1 parent 4b5dac8 commit 4fbab31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def robot_prepare_ontology(

try:
check_call(callstring)
except Exception as e:
except subprocess.CalledProcessError as e:
logging.error("Preparing %s for dashboard failed: %s", o_path, str(e))


Expand Down

0 comments on commit 4fbab31

Please sign in to comment.