summaryrefslogtreecommitdiffstats
path: root/g4f/gui
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/gui/server/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/gui/server/api.py b/g4f/gui/server/api.py
index b4e2b3d4..747d0c21 100644
--- a/g4f/gui/server/api.py
+++ b/g4f/gui/server/api.py
@@ -29,7 +29,7 @@ try:
_RequestPermissionsManager.register_callback()
from .android_gallery import user_select_image
has_android = True
-except ImportError:
+except:
run_on_ui_thread = lambda a : a
has_android = False