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

NotImplementedError: .OwnedDomain contains a list we don't know how to flatten. #12

Open
lameei opened this issue Dec 2, 2017 · 0 comments

Comments

@lameei
Copy link

lameei commented Dec 2, 2017

For some domains like yahoo.com and amazon.com I'm getting the following error:

Traceback (most recent call last):
  File "/Users/mostafalameei/Sites/rankcheckbot/lib/python3.6/site-packages/myawis/__init__.py", line 134, in flatten
    items = value.items()
AttributeError: 'list' object has no attribute 'items'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/mostafalameei/Sites/rankcheckbot/lib/python3.6/site-packages/telegram/ext/dispatcher.py", line 270, in process_update
    handler.handle_update(update, self)
  File "/Users/mostafalameei/Sites/rankcheckbot/lib/python3.6/site-packages/telegram/ext/messagehandler.py", line 169, in handle_update
    return self.callback(dispatcher.bot, update, **optional_args)
  File "rankcheckbot.py", line 101, in instantrank
    data = flatten_urlinfo(urlinfo)
  File "/Users/mostafalameei/Sites/rankcheckbot/lib/python3.6/site-packages/myawis/__init__.py", line 163, in flatten_urlinfo
    flatten(info["aws:UrlInfoResponse"]["Response"]["UrlInfoResult"]["Alexa"])
  File "/Users/mostafalameei/Sites/rankcheckbot/lib/python3.6/site-packages/myawis/__init__.py", line 159, in flatten
    flatten(v, ".".join([prefix, k]))
  File "/Users/mostafalameei/Sites/rankcheckbot/lib/python3.6/site-packages/myawis/__init__.py", line 159, in flatten
    flatten(v, ".".join([prefix, k]))
  File "/Users/mostafalameei/Sites/rankcheckbot/lib/python3.6/site-packages/myawis/__init__.py", line 159, in flatten
    flatten(v, ".".join([prefix, k]))
  File "/Users/mostafalameei/Sites/rankcheckbot/lib/python3.6/site-packages/myawis/__init__.py", line 156, in flatten
    raise NotImplementedError(msg)
NotImplementedError: .OwnedDomain contains a list we don't know how to flatten.
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

1 participant