DeepLearning101 commited on
Commit
79ce139
·
verified ·
1 Parent(s): a3335bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -165,8 +165,10 @@ def send_confirmation_hybrid(booking_id):
165
  log_msg += "✅ Mail送出 "
166
  mail_sent = True
167
  else:
 
168
  print(f"❌ Resend 錯誤: {response.status_code} - {response.text}")
169
  except Exception as e:
 
170
  print(f"❌ Resend 異常: {str(e)}")
171
 
172
  # Fallback:GAS
@@ -610,5 +612,4 @@ with gr.Blocks(title="Cié Cié Admin", css=custom_css, theme=gr.themes.Monochro
610
  )
611
 
612
  if __name__ == "__main__":
613
- demo.launch()
614
-
 
165
  log_msg += "✅ Mail送出 "
166
  mail_sent = True
167
  else:
168
+ log_msg += f"⚠️ Resend失敗({response.status_code}) "
169
  print(f"❌ Resend 錯誤: {response.status_code} - {response.text}")
170
  except Exception as e:
171
+ log_msg += f"⚠️ Resend異常 "
172
  print(f"❌ Resend 異常: {str(e)}")
173
 
174
  # Fallback:GAS
 
612
  )
613
 
614
  if __name__ == "__main__":
615
+ demo.launch()