Silence warnings while showing PuDB UI
This commit is contained in:
parent
afe202cdd0
commit
1e691bae0d
@ -1732,6 +1732,10 @@ class DebuggerUI(FrameVarInfoKeeper):
|
||||
save_config(CONFIG)
|
||||
self.run_edit_config()
|
||||
|
||||
import warnings
|
||||
prev_warning_filters = warnings.filters[:]
|
||||
warnings.simplefilter("ignore")
|
||||
|
||||
try:
|
||||
if toplevel is None:
|
||||
toplevel = self.top
|
||||
@ -1754,6 +1758,7 @@ class DebuggerUI(FrameVarInfoKeeper):
|
||||
return self.quit_event_loop
|
||||
finally:
|
||||
self.quit_event_loop = prev_quit_loop
|
||||
warnings.filters[:] = prev_warning_filters
|
||||
|
||||
# }}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user