Skip to content

Commit

Permalink
chore: Remove now redundant catching of SystemExit
Browse files Browse the repository at this point in the history
Now we catch Exception explicitly instead of a bare except, SystemExit
(which inherits from BaseException) will be raised as appropriate
without our intervention.
  • Loading branch information
benjamb committed Aug 28, 2024
1 parent ce1be07 commit 083e083
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions flat-manager-client
Original file line number Diff line number Diff line change
Expand Up @@ -947,10 +947,6 @@ if __name__ == '__main__':
"result": result,
}
res = 0
except SystemExit:
# Something called sys.exit(), lets just exit
res = 1
raise # Pass on regular exit callse
except (ApiError, FailedJobError) as e:
eprint(str(e))
output = {
Expand Down

0 comments on commit 083e083

Please sign in to comment.