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

@ -11,6 +11,8 @@ def run(cmd):
stdout, stderr = p.communicate()
if p.returncode != 0:
print('failed to run:', cmd)
print(stdout)
print(stderr)
sys.exit(1)

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: