Skip to content
This repository has been archived by the owner on Apr 10, 2018. It is now read-only.

"pygeoip __init__.py _gethostbyname" Error. #76

Closed
BhaiX opened this issue Dec 8, 2014 · 1 comment
Closed

"pygeoip __init__.py _gethostbyname" Error. #76

BhaiX opened this issue Dec 8, 2014 · 1 comment

Comments

@BhaiX
Copy link

BhaiX commented Dec 8, 2014

Hello,

I hope you guys know there is a python IRC bot Willie, To make his .ip command work we need pygeoip, I've installed it and its working but when I type.

@Bhai .ip Bhai
gaierror: [Errno -2] Name or service not known (file "/usr/local/lib/python2.7/dist-packages/pygeoip/init.py", line 394, in _gethostbyname)

This Error, Any way to fix it?

@tiwilliam
Copy link
Contributor

Since Bhai isn't a valid hostname our underlying socket library will complain. pygeoip won't catch and re-raise this error so if you want a nicer presentation you'll have to catch this in Willie.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants