#2727 Notifications - Fix "send test notification" on empty list, includes test (#2731)

This commit is contained in:
dgtlmoon
2024-10-21 11:35:37 +02:00
committed by GitHub
parent b0ff9d161e
commit 82e0b99b07
3 changed files with 32 additions and 9 deletions

View File

@@ -81,7 +81,8 @@ class update_worker(threading.Thread):
'watch_url': watch.get('url') if watch else None,
})
n_object.update(watch.extra_notification_token_values())
if watch:
n_object.update(watch.extra_notification_token_values())
logger.trace(f"Main rendered notification placeholders (diff_added etc) calculated in {time.time()-now:.3f}s")
logger.debug("Queued notification for sending")