pep8 for merge + changes

This commit is contained in:
Nicholas St. Germain 2018-12-29 21:57:48 -06:00
parent 21a559fccc
commit 0629c61a29
4 changed files with 7 additions and 6 deletions

View file

@ -33,7 +33,7 @@ class GeoIPHandler(object):
def update(self):
today = date.today()
dbdate = None
try:
dbdate = date.fromtimestamp(stat(self.dbfile).st_ctime)
except FileNotFoundError:
@ -55,7 +55,6 @@ class GeoIPHandler(object):
else:
self.logger.debug('Geolite2 DB will update in %s days', abs(td.days))
def download(self):
tar_dbfile = abspath(join(self.data_folder, 'GeoLite2-City.tar.gz'))
url = 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz'