Skip to content

Commit cd4c5dc

Browse files
committed
fix: ensure notification count defaults to zero if not present
1 parent 038beba commit cd4c5dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/Notification/NotificationPlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def actionNotificationQuery(self, to):
161161
row = next(res, None)
162162
if row:
163163
row = dict(row)
164-
count = row.get("count", row.get("COUNT(*)", 0))
164+
count = row.get("count", row.get("COUNT(*)", 0)) or 0
165165
else:
166166
count = 0
167167

0 commit comments

Comments
 (0)