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 4320179 commit 4ca439cCopy full SHA for 4ca439c
IP2Proxy.py
@@ -174,7 +174,7 @@ def open(self, filename):
174
self._licensecode = struct.unpack('B', header_row[30:31])[0]
175
self._databasesize = struct.unpack('B', header_row[31:32])[0]
176
if (self._productcode != 2) :
177
- if (self._dbyear > 20 and self._productcode != 0) :
+ if (self._dbyear <= 20 and self._productcode == 0) :
178
self._f.close()
179
del self._f
180
raise ValueError("Incorrect IP2Location BIN file format. Please make sure that you are using the latest IP2Location BIN file.")
0 commit comments