summaryrefslogtreecommitdiffstats
path: root/category.py
diff options
context:
space:
mode:
Diffstat (limited to 'category.py')
-rw-r--r--category.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/category.py b/category.py
index 857ef2b..a5f0d6b 100644
--- a/category.py
+++ b/category.py
@@ -95,6 +95,8 @@ class Category:
return hash((self.argstup(), self.name))
def __eq__(self, other):
+ if not other.__class__ == Category:
+ return False
return self.name == other.name and self.argstup() == other.argstup()
def argstup(self):