Skip to content

Commit 86fe552

Browse files
author
Edward Muller
committed
returns a string if set, so int() it
1 parent 750d36a commit 86fe552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ def comments_handler():
3030
return Response(json.dumps(comments), mimetype='application/json', headers={'Cache-Control': 'no-cache'})
3131

3232
if __name__ == '__main__':
33-
app.run(port=os.environ.get("PORT",3000))
33+
app.run(port=int(os.environ.get("PORT",3000)))

0 commit comments

Comments
 (0)