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