Only show notification target, id or url incase of error loading the target.
This commit is contained in:
parent
c2fa066669
commit
ee2fd3f398
1 changed files with 2 additions and 1 deletions
|
|
@ -215,7 +215,8 @@ class Notification(metaclass=Singleton):
|
||||||
try:
|
try:
|
||||||
Notification.validate(target)
|
Notification.validate(target)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
LOG.error(f"Invalid notification target '{target}'. '{e!s}'")
|
name = target.get("name") or target.get("id") or target.get("request", {}).get("url") or "unknown"
|
||||||
|
LOG.error(f"Invalid notification target '{name}'. '{e!s}'")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
target = self.make_target(target)
|
target = self.make_target(target)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue