Skip to content

Commit

Permalink
Merge pull request #16 from aexeagmbh/patch-port
Browse files Browse the repository at this point in the history
Add cast to int when reading port argument
  • Loading branch information
andrewgodwin committed Sep 17, 2015
2 parents d947d42 + 29c5ee4 commit cadae83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channels/management/commands/runwsserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def handle(self, *args, **options):
"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:
Expand Down

0 comments on commit cadae83

Please sign in to comment.