Update app.py
Browse files
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 |
|