Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: __init__() takes exactly 4 arguments (2 given) #8

Open
zhangnew opened this issue May 3, 2017 · 1 comment
Open

TypeError: __init__() takes exactly 4 arguments (2 given) #8

zhangnew opened this issue May 3, 2017 · 1 comment

Comments

@zhangnew
Copy link

zhangnew commented May 3, 2017

  File "xxx.py", line 16, in run
    r = c.lookup(ip)
  File "/xxx/2.7.10/lib/python2.7/site-packages/cymruwhois.py", line 190, in lookup
    return list(self.lookupmany([ip]))[0]
  File "/xxx/2.7.10/lib/python2.7/site-packages/cymruwhois.py", line 201, in lookupmany
    for rec in self._lookupmany_raw(not_cached):
  File "/xxx/2.7.10/lib/python2.7/site-packages/cymruwhois.py", line 232, in _lookupmany_raw
    r=asrecord(*parts)
TypeError: __init__() takes exactly 4 arguments (2 given)
@JustinAzoff
Copy link
Owner

I think I finally figured out what is going on with this. I think it's timing out or getting a blank line from the api. Unfortunately even if I handle it better, all I can do is raise a different exception.

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

No branches or pull requests

2 participants