Skip to content

Commit

Permalink
Don't print stacktrace on gui error if bundled
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Oct 16, 2018
1 parent 8ed3d0c commit 310dcd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions GuiUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import tkinter as tk
import traceback

from Utils import data_path
from Utils import data_path, is_bundled

def set_icon(window):
er16 = tk.PhotoImage(file=data_path('ER16.gif'))
Expand All @@ -30,7 +30,8 @@ def try_run(self, code_to_run, *code_arg):
code_to_run(*code_arg)
except Exception as e:
self.update_status('Error: ' + str(e))
traceback.print_exc()
if not is_bundled():
traceback.print_exc()
self.queue_event(self.stop)

def update_status(self, text):
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.22.15 f.LUM'
__version__ = '2.22.16 f.LUM'

0 comments on commit 310dcd4

Please sign in to comment.