|
@@ -215,8 +215,11 @@ def update_other_city():
|
|
|
|
|
|
@app.route('/report_test', methods=['GET', 'POST'])
|
|
|
def report_test():
|
|
|
- reprt_push = ReportPush('bi_report')
|
|
|
- result = reprt_push.report_data_query(2)
|
|
|
+ try:
|
|
|
+ reprt_push = ReportPush('bi_report')
|
|
|
+ result = reprt_push.report_data_query(2)
|
|
|
+ except Exception as e:
|
|
|
+ return str(e)
|
|
|
return json.dumps(result, ensure_ascii=False)
|
|
|
|
|
|
|