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)
|
save_config(CONFIG)
|
||||||
self.run_edit_config()
|
self.run_edit_config()
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
prev_warning_filters = warnings.filters[:]
|
||||||
|
warnings.simplefilter("ignore")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if toplevel is None:
|
if toplevel is None:
|
||||||
toplevel = self.top
|
toplevel = self.top
|
||||||
@ -1754,6 +1758,7 @@ class DebuggerUI(FrameVarInfoKeeper):
|
|||||||
return self.quit_event_loop
|
return self.quit_event_loop
|
||||||
finally:
|
finally:
|
||||||
self.quit_event_loop = prev_quit_loop
|
self.quit_event_loop = prev_quit_loop
|
||||||
|
warnings.filters[:] = prev_warning_filters
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user