Ensure dependent subsystems follow the current network context.
(self)
| 493 | cursor.execute("SELECT COUNT(*) FROM auth") |
| 494 | count = cursor.fetchone()[0] |
| 495 | conn.close() |
| 496 | return count > 0 |
| 497 | except Exception: |
| 498 | return False |
| 499 | |
| 500 | def _refresh_network_components(self): |
| 501 | """Ensure dependent subsystems follow the current network context.""" |
| 502 | self._configure_database() |
| 503 | if self.network_intelligence and self.network_intelligence_dir: |
| 504 | self.network_intelligence.set_storage_root(self.network_intelligence_dir) |
no test coverage detected