mirror of
https://github.com/django/daphne.git
synced 2025-07-11 08:22:17 +03:00
Add cast to int when reading port argument
This commit is contained in:
parent
454839dafa
commit
29c5ee4c3f
|
@ -18,7 +18,7 @@ class Command(BaseCommand):
|
||||||
"Configure a network-based backend in CHANNEL_BACKENDS to use this command."
|
"Configure a network-based backend in CHANNEL_BACKENDS to use this command."
|
||||||
)
|
)
|
||||||
# Run the interface
|
# Run the interface
|
||||||
port = options.get("port", None) or 9000
|
port = int(options.get("port", None) or 9000)
|
||||||
try:
|
try:
|
||||||
import asyncio
|
import asyncio
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user