From c51c391ced64513b48e9a0366ad083ab136a9866 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 16 Dec 2011 23:12:41 +0100 Subject: [PATCH] Force port as int --- couchpotato/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/runner.py b/couchpotato/runner.py index 15e8ffe5..66e2b5e5 100644 --- a/couchpotato/runner.py +++ b/couchpotato/runner.py @@ -2,7 +2,7 @@ from argparse import ArgumentParser from couchpotato import web from couchpotato.api import api from couchpotato.core.event import fireEventAsync -from couchpotato.core.helpers.variable import getDataDir +from couchpotato.core.helpers.variable import getDataDir, tryInt from daemon import createDaemon from logging import handlers from werkzeug.contrib.cache import FileSystemCache @@ -153,7 +153,7 @@ def runCouchPotato(options, base_path, args): config = { 'use_reloader': reloader, 'host': Env.setting('host', default = '0.0.0.0'), - 'port': Env.setting('port', default = 5000) + 'port': tryInt(Env.setting('port', default = 5000)) } # Static path