From 7879a803e12f12633463ed1652fe633e5240071c Mon Sep 17 00:00:00 2001
From: A_D <aunderscored@gmail.com>
Date: Fri, 10 Jul 2020 05:22:14 +0200
Subject: [PATCH] Replaced bare except clauses with except Exception

Catching SystemExit and KeyboardInterrupt is bad.
---
 edshipyard.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/edshipyard.py b/edshipyard.py
index 66454be8..e3b941c2 100644
--- a/edshipyard.py
+++ b/edshipyard.py
@@ -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