mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-22 10:12:28 +01:00
Fix crash on addNotification non-iterable
This commit is contained in:
@ -190,7 +190,7 @@ def is_package_page(f):
|
|||||||
|
|
||||||
|
|
||||||
def addNotification(target, causer, title, url):
|
def addNotification(target, causer, title, url):
|
||||||
if not isinstance(target, User):
|
if isinstance(target, Iterable):
|
||||||
for x in target:
|
for x in target:
|
||||||
addNotification(x, causer, title, url)
|
addNotification(x, causer, title, url)
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user