Commit 3fa83015 authored by wang zhengwei's avatar wang zhengwei

fix bug

parent 9842c47a
......@@ -59,8 +59,8 @@ class ReportHandlers(Resource):
dt = DataIntegrate(ifa_id=ifa_id, customer_id=customer_id, pdf_name=pdf_name)
dt.render_data()
check = 1
except:
pass
except OSError:
check = 1
print('耗时{}秒'.format(round(time.time() - start, 2)))
if check == 0:
return {"code":-1, "msg": "内部错误"}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment