4 ms·
^ This. Never call print from a library, what if I'm using a script to pipe stdout somewhere. Just throw a custom GeolocationException or something, with some u
by orf 9y ago
^ This. Never call print from a library, what if I'm using a script to pipe stdout somewhere. Just throw a custom GeolocationException or something, with some useful data about what went wrong. In this specific case though, just don't bother catching the exception. It's not useful and it indicates something is terribly wrong.
- jonathan-kosgei 9y agoFixed https://github.com/ipdata/python/blob/master/ipdata/ipdata.py https://github.com/ipdata/python/blob/master/ipdata/ipdata.p... will add enhancements when I can.