NoSuchDomain error class needs to be added
Brought to you by:
cabbie,
phil_schwartz
I came across rwhois.py and it seemed to be just what I needed! Came across an issue however. The NoSuchDomain error that is thrown (for example, in line 327 of rwhois.py v1.5) when a domain is not found is a string currently. Throwing string exceptions is deprecated. The currently recommended approach is to make a class for the error, subclassing Exception ( details: http://docs.python.org/tut/node10.html#SECTION0010500000000000000000 )
At runtime, a warning is thrown if the exception is thrown. So the error can still be caught, but it is something that should be addressed soon.
Thanks for a great tool!
Logged In: NO
Also to note: Backwards compatibility for throwing string exceptions will be removed in Python 3.0: http://en.wikipedia.org/wiki/Python_3#What.27s_new