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 0ae0bff commit e2054deCopy full SHA for e2054de
maxminddb/reader.py
@@ -95,6 +95,9 @@ def get(self, ip_address):
95
Arguments:
96
ip_address -- an IP address in the standard string notation
97
"""
98
+ if isinstance(ip_address, bytes):
99
+ ip_address = ip_address.decode()
100
+
101
address = ipaddress.ip_address(ip_address)
102
103
if address.version == 6 and self._metadata.ip_version == 4:
0 commit comments