Spaces:
Runtime error
Runtime error
Update app/routes.py
Browse files- app/routes.py +2 -2
app/routes.py
CHANGED
|
@@ -78,7 +78,7 @@ def register():
|
|
| 78 |
except Exception as e:
|
| 79 |
print("🔥 Registration error:", e)
|
| 80 |
traceback.print_exc() # This prints full error to Hugging Face logs
|
| 81 |
-
return
|
| 82 |
|
| 83 |
return render_template('register.html')
|
| 84 |
|
|
@@ -133,7 +133,7 @@ def resend_verification():
|
|
| 133 |
except Exception as e:
|
| 134 |
print("🔥 Resend error:", e)
|
| 135 |
traceback.print_exc()
|
| 136 |
-
return
|
| 137 |
|
| 138 |
return render_template('resend_verification.html')
|
| 139 |
|
|
|
|
| 78 |
except Exception as e:
|
| 79 |
print("🔥 Registration error:", e)
|
| 80 |
traceback.print_exc() # This prints full error to Hugging Face logs
|
| 81 |
+
return str(e), 500
|
| 82 |
|
| 83 |
return render_template('register.html')
|
| 84 |
|
|
|
|
| 133 |
except Exception as e:
|
| 134 |
print("🔥 Resend error:", e)
|
| 135 |
traceback.print_exc()
|
| 136 |
+
return str(e), 500
|
| 137 |
|
| 138 |
return render_template('resend_verification.html')
|
| 139 |
|