Fix kuryr-daemon for Werkzeug 0.13

Ie7c0ddaa0091b31da2661be48e6cf40e052dcd52 updates upper-constraints to
point to Werzeug 0.13. Looks like it has non-backward compatible change
and now requires port passed to run_simple to be an integer. This commit
makes sure we're passing int instead of string.

Change-Id: I36681dd3443463fd455dccdd0c8702162c16b84f
Closes-Bug: 1738374
This commit is contained in:
Michał Dulko 2017-12-15 10:20:28 +01:00
parent c468b28c38
commit 904ed6c26c
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ class DaemonServer(object):
LOG.info('Starting server on %s.', server_pair)
try:
address, port = server_pair.split(':')
port = int(port)
except ValueError:
LOG.exception('Cannot start server on %s.', server_pair)
raise