(wifi_handler: WifiHandler | None = None)
| 36 | |
| 37 | |
| 38 | def _check_online(wifi_handler: WifiHandler | None = None) -> bool: |
| 39 | try: |
| 40 | ping('1.1.1.1') |
| 41 | except OSError as ex: |
| 42 | if 'Network is unreachable' in str(ex): |
| 43 | if wifi_handler is not None: |
| 44 | result: bool = tui.run(wifi_handler) |
| 45 | if not result: |
| 46 | return False |
| 47 | |
| 48 | return True |
| 49 | |
| 50 | |
| 51 | def _fetch_arch_db() -> bool: |