pengzhibo168 5 yıl önce
ebeveyn
işleme
2e72c6d81b
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  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)