Fix error on comparson (#1104)

This commit is contained in:
Pascal Vizeli 2019-05-31 11:46:28 +02:00 committed by GitHub
parent 658449a7a0
commit 8ea712a937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -449,9 +449,9 @@ class AddonModel(CoreSysAttributes):
def __eq__(self, other):
"""Compaired add-on objects."""
if self.slug == other.slug:
return True
return False
if not isinstance(other, AddonModel):
return False
return self.slug == other.slug
def _available(self, config) -> bool:
"""Return True if this add-on is available on this platform."""