Falko Schindler 1 year ago
parent
commit
87647c4fed
2 changed files with 3 additions and 2 deletions
  1. 2 1
      nicegui/air.py
  2. 1 1
      website/more_documentation/log_documentation.py

+ 2 - 1
nicegui/air.py

@@ -9,6 +9,7 @@ from . import globals
 from .nicegui import handle_disconnect, handle_event, handle_handshake, handle_javascript_response
 
 RELAY_HOST = 'https://on-air.nicegui.io/'
+RELAY_HOST = 'http://localhost/'
 
 
 class Air:
@@ -104,7 +105,7 @@ class Air:
                 socketio_path='/on_air/socket.io',
                 transports=['websocket', 'polling'],
             )
-        except:
+        except Exception:
             logging.exception('Could not connect to NiceGUI On Air server.')
             print('Could not connect to NiceGUI On Air server.', flush=True)
 

+ 1 - 1
website/more_documentation/log_documentation.py

@@ -32,7 +32,7 @@ def more() -> None:
                     self.element.push(msg)
                 except (KeyboardInterrupt, SystemExit):
                     raise
-                except:
+                except Exception:
                     self.handleError(record)
 
         log = ui.log(max_lines=10).classes('w-full')