Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files
app.py
CHANGED
|
@@ -581,8 +581,12 @@ def kotak_auth_totp(payload: TotpRequest) -> dict:
|
|
| 581 |
try:
|
| 582 |
return kotak_neo_manager.authenticate_with_totp(payload.totp)
|
| 583 |
except KotakNeoConfigError as exc:
|
|
|
|
| 584 |
raise HTTPException(status_code=503, detail=str(exc)) from exc
|
| 585 |
except KotakNeoError as exc:
|
|
|
|
|
|
|
|
|
|
| 586 |
raise HTTPException(status_code=400, detail=str(exc)) from exc
|
| 587 |
|
| 588 |
|
|
|
|
| 581 |
try:
|
| 582 |
return kotak_neo_manager.authenticate_with_totp(payload.totp)
|
| 583 |
except KotakNeoConfigError as exc:
|
| 584 |
+
print(f"[AUTH ERROR 503]: {exc}", flush=True)
|
| 585 |
raise HTTPException(status_code=503, detail=str(exc)) from exc
|
| 586 |
except KotakNeoError as exc:
|
| 587 |
+
print(f"[AUTH ERROR 400]: {repr(exc)}", flush=True)
|
| 588 |
+
import traceback
|
| 589 |
+
traceback.print_exc()
|
| 590 |
raise HTTPException(status_code=400, detail=str(exc)) from exc
|
| 591 |
|
| 592 |
|