Commit Graph

3 Commits

Author SHA1 Message Date
blacktwin
9a2515bcd7 resolve n/a returns from geolite2
Passing on errors in get_geoip_info function instead of [returning it](https://github.com/blacktwin/JBOPS/blob/master/maps/ips_to_maps.py#L151).

Changing the [get_geo_dict function's exception](https://github.com/blacktwin/JBOPS/blob/master/maps/ips_to_maps.py#L195-L198) to catch and return culprit.

```python
    except AttributeError:
        print('User: {} IP: {} caused error in geo_dict.'.format(a.friendly_name, a.ip_address))
        pass
    except Exception as e:
        print(e)
        pass
    return geo_dict
```
2017-07-21 09:29:32 -04:00
blacktwin
e9331861aa Update ips_to_maps.py 2017-07-14 14:32:24 -04:00
blacktwin
fb150957c2 Create ips_to_maps.py 2017-07-13 10:26:31 -04:00