From 083e083cf362892bae0c8c29a5e5a61d59a6e71a Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Wed, 28 Aug 2024 17:26:56 +0100 Subject: [PATCH] chore: Remove now redundant catching of SystemExit Now we catch Exception explicitly instead of a bare except, SystemExit (which inherits from BaseException) will be raised as appropriate without our intervention. --- flat-manager-client | 4 ---- 1 file changed, 4 deletions(-) diff --git a/flat-manager-client b/flat-manager-client index 4cae336..dc7a87a 100755 --- a/flat-manager-client +++ b/flat-manager-client @@ -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 = {