Neutralizing wait_window error
@@ -917,7 +917,12 @@ class CPythonProxy(BackendProxy):
from thonny.ui_utils import SubprocessDialog
dlg = SubprocessDialog(get_workbench(), proc, "Preparing the backend", long_description=description)
- dlg.wait_window()
+ try:
+ get_workbench().wait_window(dlg)
+ except:
+ # if using --without-pip the dialog may close very quickly
+ # and for some reason wait_window would give error then
+ logging.exception("Problem with waiting for venv creation dialog")
get_workbench().become_topmost_window() # Otherwise focus may get stuck somewhere
bindir = os.path.dirname(get_private_venv_executable())
