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:
parent
11df049d0c
commit
7879a803e1
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user