Fix cache format bug (#576)

pull/583/head
Igor Chubin 4 years ago
parent 93dd9bf446
commit 94cdb961f9

@ -136,7 +136,7 @@ def _ipcachewrite(ip_addr, location):
# like ip2location format
file.write(location[3] + ';' + location[2] + ';' + location[1] + ';' + location[0])
if len(location) > 4:
file.write(';'.join(location[4:]))
file.write(';' + ';'.join(map(str, location[4:])))
def _ipcache(ip_addr):

Loading…
Cancel
Save