Skip to content

Commit

Permalink
Merge pull request #544 from dslosky-usgs/api
Browse files Browse the repository at this point in the history
Force web port to be an integer
  • Loading branch information
dslosky-usgs committed Aug 26, 2020
2 parents dc275f1 + f6c3b9a commit 2a2a113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shakecast/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2a2a113

Please sign in to comment.