Skip to content

Commit

Permalink
Fix error in DNSRecord comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolai Buchwitz committed Aug 13, 2018
1 parent 3bb3aa7 commit 273b6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nc_dnsapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __eq__(self, other):
if self.type == 'MX' and other.type == self.type and self.priority:
result = result and int(self.priority) == int(other.priority)

if self.id:
if self.id and other.id:
result = result and self.id == other.id

return result
Expand Down

0 comments on commit 273b6dc

Please sign in to comment.