V1.30.9 trace exception
This commit is contained in:
parent
95ead3c9d7
commit
3330e6ea77
@ -3,6 +3,7 @@ from .notification_hook import NotificationHook
|
|||||||
from ..models import notification as notif
|
from ..models import notification as notif
|
||||||
from ..models.notification import NotificationHistory
|
from ..models.notification import NotificationHistory
|
||||||
from .fcm import FCM
|
from .fcm import FCM
|
||||||
|
import traceback
|
||||||
|
|
||||||
class Notification:
|
class Notification:
|
||||||
fcm = FCM()
|
fcm = FCM()
|
||||||
@ -34,6 +35,7 @@ class Notification:
|
|||||||
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print(f'Error in execution of the notification {notification.internal_name}: {ex}')
|
print(f'Error in execution of the notification {notification.internal_name}: {ex}')
|
||||||
|
traceback.print_exc()
|
||||||
|
|
||||||
def insert_history(self, notification, customer, rc):
|
def insert_history(self, notification, customer, rc):
|
||||||
history = NotificationHistory()
|
history = NotificationHistory()
|
||||||
|
Loading…
Reference in New Issue
Block a user