Skip to content
Permalink
Browse files

Don't print stacktrace on gui error if bundled

  • Loading branch information...
Unknown
Unknown committed Oct 16, 2018
1 parent 8ed3d0c commit 310dcd451e1deff0478b2d86d4d1af17e4b6cd91
Showing with 4 additions and 3 deletions.
  1. +3 −2 GuiUtils.py
  2. +1 −1 version.py
@@ -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'))
@@ -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):
@@ -1 +1 @@
__version__ = '2.22.15 f.LUM'
__version__ = '2.22.16 f.LUM'

0 comments on commit 310dcd4

Please sign in to comment.
You can’t perform that action at this time.