Add cast to int when reading port argument

This commit is contained in:
Arne Schauf 2015-09-17 11:03:36 +02:00 committed by Arne Schauf
parent 454839dafa
commit 29c5ee4c3f

View File

@ -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: