lang 3 anni fa
parent
commit
9bb2f20479
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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: