Skip to content

Commit

Permalink
Improved exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
PalNilsson committed May 8, 2024
1 parent 5f8d947 commit a579bb9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PILOTVERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.7.5.3
3.7.5.4
2 changes: 1 addition & 1 deletion pilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ def get_proper_exit_code() -> (int, int):
"""
try:
exitcode = trace.pilot["error_code"]
except KeyError:
except (KeyError, AttributeError):
exitcode = trace
logging.debug(f"trace was not a class, trace={trace}")
else:
Expand Down
2 changes: 1 addition & 1 deletion pilot/util/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
RELEASE = '3' # released number should be fixed at 3 for Pilot 3
VERSION = '7' # version number is '1' for first release, '0' until then, increased for bigger updates
REVISION = '5' # revision number should be reset to '0' for every new version release, increased for small updates
BUILD = '3' # build number should be reset to '1' for every new development cycle
BUILD = '4' # build number should be reset to '1' for every new development cycle

SUCCESS = 0
FAILURE = 1
Expand Down

0 comments on commit a579bb9

Please sign in to comment.