Compare commits
No commits in common. "5eea888f3d872463a67ef18b1bb914b65ec6d207" and "753e85b7f2ced921b41e4e99a8fcbf151a44173d" have entirely different histories.
5eea888f3d
...
753e85b7f2
7
main.py
7
main.py
@ -14,13 +14,6 @@ app.include_router(take.router)
|
||||
app.include_router(put.router)
|
||||
app.include_router(finish.router)
|
||||
|
||||
@app.exception_handler(Exception)
|
||||
async def unicorn_exception_handler(request: fastapi.Request, exc: Exception):
|
||||
return fastapi.JSONResponse(
|
||||
status_code=500,
|
||||
content={"message": f"Oops! {exc.name} did something. There goes a rainbow... {exc}"},
|
||||
)
|
||||
|
||||
mongo.create_indexes()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user