pengzhibo168 hace 5 años
padre
commit
2e72c6d81b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      Controller/DetectController.py

+ 2 - 0
Controller/DetectController.py

@@ -363,6 +363,8 @@ class NotificationView(View):
                 print('apns push fail')
                 print(res.reason)
                 return
+        except (ValueError, ArithmeticError):
+            return 'The program has a numeric format exception, one of the arithmetic exceptions'
         except Exception as e:
             print(repr(e))
             return repr(e)