Check if geoip DB is a real file.

This commit is contained in:
Bastian Kleineidam 2010-09-30 18:44:30 +02:00
parent 782b8adfc6
commit 3b9be3fece

View file

@ -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