diff --git a/blasta/__main__.py b/blasta/__main__.py index ae2d9dc..8a1dc30 100644 --- a/blasta/__main__.py +++ b/blasta/__main__.py @@ -57,7 +57,7 @@ if __name__ == 'blasta.__main__': parser.add_argument('-p', '--port', help='port number', dest='port') parser.add_argument('-o', '--open', help='open an html browser', action='store_const', const=True, dest='open') args = parser.parse_args() - port = args.port or 8000 + port = int(args.port or 8000) uvicorn.run(app, host='localhost', port=port) if args.open: # TODO Check first time