1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

Replaced bare except clauses with except Exception

Catching SystemExit and KeyboardInterrupt is bad.
This commit is contained in:
A_D 2020-07-10 05:22:14 +02:00
parent 11df049d0c
commit 7879a803e1
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -143,7 +143,7 @@ def export(data, filename=None):
continue # Silently skip unrecognized modules
except:
except Exception:
if __debug__:
raise
@ -173,7 +173,7 @@ def export(data, filename=None):
multiplier / (mass + fuel) + jumpboost,
multiplier / (mass + fuel + cargo) + jumpboost)
except:
except Exception:
if __debug__:
raise