|
|
@@ -48,5 +48,7 @@ async def submit_contact_form(
|
|
|
return {"message": "Your message has been sent successfully."}
|
|
|
|
|
|
except Exception as e:
|
|
|
- print(f"Contact form error: {e}")
|
|
|
- raise HTTPException(status_code=500, detail="Internal server error")
|
|
|
+ import traceback
|
|
|
+ print(f"CRITICAL Contact form error: {e}")
|
|
|
+ traceback.print_exc()
|
|
|
+ raise HTTPException(status_code=500, detail=f"Internal server error: {str(e)}")
|