We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f32b3c + 4ef9988 commit 7394b89Copy full SHA for 7394b89
pusher/notification_client.py
@@ -42,7 +42,7 @@ def notify(self, interests, notification):
42
if not isinstance(interests, list) and not isinstance(interests, set):
43
raise TypeError("Interests must be a list or a set")
44
45
- if len(interests) is 0:
+ if len(interests) == 0:
46
raise ValueError("Interests must not be empty")
47
48
if not isinstance(notification, dict):
0 commit comments