Fix for python 3.14

This commit is contained in:
Antoine Nguyen
2026-01-15 13:13:44 +01:00
parent c9dd855f65
commit 73e18c99fc
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM python:3.12-alpine3.20 AS base
FROM python:3.14-alpine AS base
LABEL org.opencontainers.image.authors="Antoine Nguyen <tonio@ngyn.org>"
@@ -31,7 +31,11 @@ class Command(BaseCommand):
def handle(self, *args, **options):
"""Entry point."""
loop = asyncio.get_event_loop()
try:
loop = asyncio.get_event_loop()
except RuntimeError:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
coro = asyncio.start_server(
core.new_connection, options["host"], options["port"]
)