@@ -45,8 +45,9 @@ class Test(View):
push.platform = jpush.all_
try:
response = push.send()
- except:
+ except Exception as e:
print("Exception")
+ return response.json(10,repr(e))
return response.json(0)
def post(self, request, *args, **kwargs):