forked from 0x2620/pandora
docker fixes
This commit is contained in:
parent
213adcaaaa
commit
7ab789f80a
8 changed files with 37 additions and 38 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ def get_location(ip):
|
|||
else:
|
||||
try:
|
||||
location = g.city(ip)
|
||||
except GeoIP2Exception:
|
||||
except:
|
||||
try:
|
||||
location = g.country(s.ip)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue