lang 3 tahun lalu
induk
melakukan
9bb2f20479
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      Controller/DetectController.py

+ 3 - 1
Controller/DetectController.py

@@ -434,7 +434,9 @@ class NotificationView(View):
             res = push.send()
             print(res)
             status_code = res.status_code
-        except:
+        except Exception as e:
+            logger = logging.getLogger('info')
+            logger.info(e)
             status_code = 100
         return status_code
         # try: