Skip to content

Commit 922dc50

Browse files
authored
Merge pull request #71 from jojoyess/fix_suppress_error_popups
fix for SUPPRESS_RAISE_KEY_ERRORS isn't honored
2 parents 55c8d34 + da714ff commit 922dc50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FreeSimpleGUI/_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _create_error_message():
2929

3030

3131
def _error_popup_with_traceback(title, *args, emoji=None):
32-
if SUPPRESS_ERROR_POPUPS:
32+
if FreeSimpleGUI.SUPPRESS_ERROR_POPUPS:
3333
return
3434
trace_details = traceback.format_stack()
3535
error_message = ''
@@ -128,11 +128,11 @@ def _exit_mainloop(exiting_window):
128128
# print('** Exited window mainloop **')
129129

130130

131+
import FreeSimpleGUI
131132
from FreeSimpleGUI import _random_error_emoji
132133
from FreeSimpleGUI import execute_editor
133134
from FreeSimpleGUI import execute_get_editor
134135
from FreeSimpleGUI import popup_quick_message
135-
from FreeSimpleGUI import SUPPRESS_ERROR_POPUPS
136136
from FreeSimpleGUI import WIN_CLOSED
137137
from FreeSimpleGUI.elements.button import Button
138138
from FreeSimpleGUI.elements.image import Image

0 commit comments

Comments
 (0)