Fix test_config.py

This commit is contained in:
grossmj committed 2025-11-17 11:26:06 +10:00
1 parent 4dc321454e
commit 942f021b58
3 files changed
+17 -5

No files matched your search

+5
View File
@@ -293,6 +293,11 @@ class WebServer:
raise SystemExit
self._ssl_context = self._create_ssl_context(server_config)
try:
self._loop = asyncio.get_running_loop()
except RuntimeError:
self._loop = asyncio.new_event_loop()
asyncio.set_event_loop(self._loop)
self._loop = asyncio.get_event_loop()
if log.getEffectiveLevel() == logging.DEBUG: