From eb3d067e2636cd9f0864256cbd4590b1a6d07337 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 9 Jul 2020 05:45:04 +0100 Subject: [PATCH] Fix crash on addNotification non-iterable --- app/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils.py b/app/utils.py index 67b4015..cd386d4 100644 --- a/app/utils.py +++ b/app/utils.py @@ -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