Browse Source

修改查询推送消息异常响应

locky 1 year ago
parent
commit
7b8a7b687e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Controller/DetectControllerV2.py

+ 1 - 2
Controller/DetectControllerV2.py

@@ -462,8 +462,7 @@ class DetectControllerViewV2(View):
                 res.append(equipment_info)
             return response.json(0, {'datas': res, 'count': count})
         except Exception as e:
-            print('error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
-            return response.json(474)
+            return response.json(500, 'error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
 
     def do_update_interval(self, userID, request_dict, response):
         uid = request_dict.get('uid', None)