mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-18 05:11:00 +00:00
Check if geoip DB is a real file.
This commit is contained in:
parent
782b8adfc6
commit
3b9be3fece
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ def get_geoip_dat ():
|
|||
for path in paths:
|
||||
for datafile in datafiles:
|
||||
filename = os.path.join(path, datafile)
|
||||
if os.path.exists(filename):
|
||||
if os.path.isfile(filename):
|
||||
return filename
|
||||
|
||||
# try importing both the C-library GeoIP and the pure-python pygeoip
|
||||
|
|
|
|||
Loading…
Reference in a new issue