[#2882] [Core] Nicer log message about missing GeoIP support in lt 1.1.1

This commit is contained in:
Calum Lind 2016-09-28 10:36:06 +01:00
parent e66be42c81
commit 6c73105a73
1 changed files with 3 additions and 1 deletions

View File

@ -498,9 +498,11 @@ class PreferencesManager(component.Component):
if geoip_db: if geoip_db:
try: try:
self.session.load_country_db(str(geoip_db)) self.session.load_country_db(str(geoip_db))
except Exception, e: except RuntimeError, e:
log.error("Unable to load geoip database!") log.error("Unable to load geoip database!")
log.exception(e) log.exception(e)
except AttributeError:
log.warning("GeoIP Unavailable")
def _on_cache_size(self, key, value): def _on_cache_size(self, key, value):
log.debug("%s: %s", key, value) log.debug("%s: %s", key, value)