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