From 4bd826b3bed6fbcbd2b5029094c38e548b38583d Mon Sep 17 00:00:00 2001 From: Tal Leibman Date: Fri, 25 Dec 2020 19:08:22 +0200 Subject: [PATCH] remove uvicorn run --- etebase_fastapi/app.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/etebase_fastapi/app.py b/etebase_fastapi/app.py index 449059a..fac2a31 100644 --- a/etebase_fastapi/app.py +++ b/etebase_fastapi/app.py @@ -31,9 +31,3 @@ app.add_middleware( @app.exception_handler(CustomHttpException) async def custom_exception_handler(request: Request, exc: CustomHttpException): return MsgpackResponse(status_code=exc.status_code, content=exc.as_dict) - - -if __name__ == "__main__": - import uvicorn - - uvicorn.run(app, host="0.0.0.0", port=8000)