mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +01:00
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
Block a user