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.
1 parent be0191e commit 2f0e10bCopy full SHA for 2f0e10b
maxminddb/decoder.py
@@ -126,7 +126,7 @@ def decode(self, offset):
126
if not type_num:
127
(type_num, new_offset) = self._read_extended(new_offset)
128
129
- if not type_num in self._type_decoder:
+ if type_num not in self._type_decoder:
130
raise InvalidDatabaseError('Unexpected type number ({type}) '
131
'encountered'.format(type=type_num))
132
0 commit comments