diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-07-09 05:45:04 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-07-09 05:45:04 +0100 |
commit | eb3d067e2636cd9f0864256cbd4590b1a6d07337 (patch) | |
tree | ce6b65af1eeb40827dfc57f0c2a328524fb66c08 /app/utils.py | |
parent | db80c441ec8543bdf92984db0b64bda584cd45a7 (diff) | |
download | cheatdb-eb3d067e2636cd9f0864256cbd4590b1a6d07337.tar.xz |
Fix crash on addNotification non-iterable
Diffstat (limited to 'app/utils.py')
-rw-r--r-- | app/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |