chenjunkai 6 years ago
parent
commit
5028bd36cb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Controller/Test.py

+ 2 - 1
Controller/Test.py

@@ -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):