From 76a80adcb204629e263721988aaba77e2435d3e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Le=CC=82-Quo=CC=82c?= Date: Fri, 3 Aug 2012 15:32:25 -0400 Subject: [PATCH] Fixes #130 take 2. --- ddagent.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ddagent.py b/ddagent.py index d8a831ebda..79ac59ddb2 100755 --- a/ddagent.py +++ b/ddagent.py @@ -263,7 +263,11 @@ def main(): agentConfig = get_config(parse_args = False) - port = int(agentConfig.get('listen_port', 17123)) + port = agentConfig.get('listen_port', 17123) + if port is None: + port = 17123 + else: + port = int(port) app = Application(port, agentConfig) app.run()