diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-09-02 10:52:36 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-09-02 10:52:36 +0300 |
commit | 24474b4434925aa5d3b6ffb9214261eba57d18df (patch) | |
tree | 67070fa188f47d231318135d395d15d3262d98a4 /plugins/SimulationView | |
parent | a2e2c541e5d16117b3754dbeca3ac4cce3b4a719 (diff) |
Made too broad exception handling more specific
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r-- | plugins/SimulationView/SimulationView.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SimulationView/SimulationView.py b/plugins/SimulationView/SimulationView.py index b3f527acae..28d5a74523 100644 --- a/plugins/SimulationView/SimulationView.py +++ b/plugins/SimulationView/SimulationView.py @@ -386,7 +386,7 @@ class SimulationView(CuraView): self._max_thickness = max(float(p.lineThicknesses.max()), self._max_thickness) try: self._min_thickness = min(float(p.lineThicknesses[numpy.nonzero(p.lineThicknesses)].min()), self._min_thickness) - except: + except ValueError: # Sometimes, when importing a GCode the line thicknesses are zero and so the minimum (avoiding # the zero) can't be calculated Logger.log("i", "Min thickness can't be calculated because all the values are zero") |