mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Fix for python 3.14
This commit is contained in:
@@ -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"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user