Fix crash on addNotification non-iterable

This commit is contained in:
rubenwardy 2020-07-09 05:45:04 +01:00
parent db80c441ec
commit eb3d067e26
1 changed files with 1 additions and 1 deletions

View File

@ -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