chanjunkai 5 years ago
parent
commit
0705833d4c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Controller/ApplicationController.py

+ 2 - 2
Controller/ApplicationController.py

@@ -217,8 +217,8 @@ class ApplicationView(View):
             ApplicationModel.objects.create(add_time=nowTime, update_time=nowTime, client_id=client_id, name=name, client_secret=client_secret,
             ApplicationModel.objects.create(add_time=nowTime, update_time=nowTime, client_id=client_id, name=name, client_secret=client_secret,
                                            client_type=client_type,redirect_uri=redirect_uri,skip_auth=skip_auth,grant_type=grant_type)
                                            client_type=client_type,redirect_uri=redirect_uri,skip_auth=skip_auth,grant_type=grant_type)
             return response.json(0)
             return response.json(0)
-        except Exception:
-            return response.json(178)
+        except Exception as e:
+            return response.json(178,repr(e))
 
 
     def query(self, request_dict, userID, response):
     def query(self, request_dict, userID, response):
         own_perm = ModelService.check_perm(userID, 20)
         own_perm = ModelService.check_perm(userID, 20)