mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 14:10:52 -07:00
Missing GeoLite2 database message link to settings page
This commit is contained in:
parent
c96b1eb09d
commit
82341642f4
1 changed files with 4 additions and 2 deletions
|
@ -579,7 +579,8 @@ def install_geoip_db():
|
|||
|
||||
def geoip_lookup(ip_address):
|
||||
if not plexpy.CONFIG.GEOIP_DB:
|
||||
return 'GeoLite2 database not installed. Please install from the Settings page.'
|
||||
return 'GeoLite2 database not installed. Please install from the ' \
|
||||
'<a href="settings?install_geoip=true">Settings</a> page.'
|
||||
|
||||
if not ip_address:
|
||||
return 'No IP address provided.'
|
||||
|
@ -589,7 +590,8 @@ def geoip_lookup(ip_address):
|
|||
geo = reader.city(ip_address)
|
||||
reader.close()
|
||||
except IOError as e:
|
||||
return 'Missing GeoLite2 database. Please reinstall from the Settings page.'
|
||||
return 'Missing GeoLite2 database. Please reinstall from the ' \
|
||||
'<a href="settings?install_geoip=true">Settings</a> page.'
|
||||
except ValueError as e:
|
||||
return 'Unable to read GeoLite2 database: %s' % e
|
||||
except maxminddb.InvalidDatabaseError as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue