Fix crash on addNotification non-iterable
This commit is contained in:
parent
db80c441ec
commit
eb3d067e26
|
@ -190,7 +190,7 @@ def is_package_page(f):
|
|||
|
||||
|
||||
def addNotification(target, causer, title, url):
|
||||
if not isinstance(target, User):
|
||||
if isinstance(target, Iterable):
|
||||
for x in target:
|
||||
addNotification(x, causer, title, url)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue