chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
5028bd36cb
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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):