From 09d50b9636e8ef3338832297ef25f43cb288c2e8 Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Sun, 17 Nov 2024 18:12:01 +0200 Subject: [PATCH] Fix argument to modify port. (Thank you. roughnecks) --- blasta/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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