From f6c3b9a86121f3977254fb27ba3d5acb20961a84 Mon Sep 17 00:00:00 2001 From: dslosky-usgs Date: Mon, 24 Aug 2020 16:54:35 -0600 Subject: [PATCH] Force web port to be an integer --- shakecast/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shakecast/api.py b/shakecast/api.py index 4f223a65..c0ed6e3c 100644 --- a/shakecast/api.py +++ b/shakecast/api.py @@ -806,7 +806,7 @@ def start(): # don't start the web server if we're letting an extension do it if 'web_server' not in sc.dict['extensions']: - app.run(host='0.0.0.0', port=sc.dict['web_port'], threaded=True) + app.run(host='0.0.0.0', port=int(sc.dict['web_port']), threaded=True) if __name__ == '__main__': if len(sys.argv) > 1: