1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-10-16 23:33:45 +03:00

advancing on refactoring

This commit is contained in:
Adolfo Gómez García
2024-01-10 02:01:03 +01:00
parent 4f2b331bb8
commit f6c6578b00
87 changed files with 301 additions and 318 deletions

View File

@@ -96,8 +96,8 @@ class NotificationsManager(metaclass=singleton.Singleton):
# Store the notification on local persistent storage
# Will be processed by UDS backend
try:
with Notification.atomicPersistent():
with Notification.atomic_persistent():
notify = Notification(group=group, identificator=identificator, level=level, message=message)
notify.savePersistent()
notify.save_persistent()
except Exception:
logger.info('Error saving notification %s, %s, %s, %s', group, identificator, level, message)