webcodelab commited on
Commit
27e0b0f
·
verified ·
1 Parent(s): ef18878

Update app/routes.py

Browse files
Files changed (1) hide show
  1. 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 "Internal Server Error", 500
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 "Internal Server Error", 500
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