emee commited on
Commit
e6927ac
·
1 Parent(s): 70ca71a
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -43,5 +43,6 @@ async def redirect(request:Request, path: str):
43
 
44
  content_type = response.headers.get('content-type', 'application/octet-stream')
45
  return StreamingResponse(stream_content(), media_type=content_type)
46
- except:
 
47
  return JSONResponse({ "msg": "try hard bro" })
 
43
 
44
  content_type = response.headers.get('content-type', 'application/octet-stream')
45
  return StreamingResponse(stream_content(), media_type=content_type)
46
+ except Exception as err:
47
+ print(f"{err} [ERROR]")
48
  return JSONResponse({ "msg": "try hard bro" })