Skip to content

Commit

Permalink
fix geolookup test for invalid ip address
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Oct 5, 2021
1 parent 6b82529 commit a57bcbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zat/utils/geo_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def query_ip(self, ip_address, verbose=False):
return {'error': error_msg}

# Check for error or not-found
if output['type'] is None:
if output.get('type') is None:
output = None
self.query_cache.set(ip_address, output)
return output
Expand Down

0 comments on commit a57bcbc

Please sign in to comment.