yangtb24 commited on
Commit
c1ed78b
·
verified ·
1 Parent(s): a2781bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -503,7 +503,9 @@ async def handle_webhook():
503
  await handleTelegramUpdate(update)
504
  return jsonify({'status': 'ok'})
505
  except Exception as e:
 
506
  print(f"请求解析失败: {e}")
 
507
  return jsonify({'status': 'error', 'message': str(e)}), 400
508
 
509
 
 
503
  await handleTelegramUpdate(update)
504
  return jsonify({'status': 'ok'})
505
  except Exception as e:
506
+ import traceback
507
  print(f"请求解析失败: {e}")
508
+ traceback.print_exc() # 打印详细的堆栈信息
509
  return jsonify({'status': 'error', 'message': str(e)}), 400
510
 
511