Skip to content

Commit

Permalink
Fixes #130 take 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
alq666 committed Aug 3, 2012
1 parent b8fb3b3 commit 76a80ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ddagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 76a80ad

Please sign in to comment.