chenjunkai 6 سال پیش
والد
کامیت
5028bd36cb
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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):