From 7ce3c8e7a04b86163f3b9f0a206b135411e3293b Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 10 Apr 2021 19:55:48 +0200 Subject: output a warning in params if simulation cannot load (#1143) --- lib/gui/simulator.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/gui/simulator.py') diff --git a/lib/gui/simulator.py b/lib/gui/simulator.py index 27b9a97e..3e1f68c5 100644 --- a/lib/gui/simulator.py +++ b/lib/gui/simulator.py @@ -5,13 +5,11 @@ import sys import time -import traceback from threading import Event, Thread import wx from wx.lib.intctrl import IntCtrl -from .dialogs import info_dialog from ..i18n import _ from ..stitch_plan import patches_to_stitch_plan, stitch_plan_from_file from ..svg import PIXELS_PER_MM @@ -822,8 +820,6 @@ class SimulatorPreview(Thread): on_close=self.simulate_window_closed, target_duration=self.target_duration) except Exception: - error = traceback.format_exc() - try: # a window may have been created, so we need to destroy it # or the app will never exit @@ -831,8 +827,6 @@ class SimulatorPreview(Thread): except Exception: pass - info_dialog(self, error, _("Internal Error")) - self.simulate_window.Show() wx.CallLater(10, self.parent.Raise) -- cgit v1.2.3