docker fixes

This commit is contained in:
j 2020-09-27 17:53:37 +02:00
commit 7ab789f80a
8 changed files with 37 additions and 38 deletions

View file

@ -22,7 +22,7 @@ def get_location(ip):
else:
try:
location = g.city(ip)
except GeoIP2Exception:
except:
try:
location = g.country(s.ip)
except: