From 29c5ee4c3f8e0e076a0b83619b90a9630989763f Mon Sep 17 00:00:00 2001 From: Arne Schauf Date: Thu, 17 Sep 2015 11:03:36 +0200 Subject: [PATCH] Add cast to int when reading port argument --- channels/management/commands/runwsserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/management/commands/runwsserver.py b/channels/management/commands/runwsserver.py index b1525d9..a1f9350 100644 --- a/channels/management/commands/runwsserver.py +++ b/channels/management/commands/runwsserver.py @@ -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: