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

Very specific .weather request tries to len() a None object. #197

Closed
tyrope opened this issue Mar 2, 2013 · 1 comment
Closed

Very specific .weather request tries to len() a None object. #197

tyrope opened this issue Mar 2, 2013 · 1 comment
Labels
Bug Things to squish; generally used for issues

Comments

@tyrope
Copy link

tyrope commented Mar 2, 2013

[1550.55] < jash> .weather
[1550.56] <@ Willie> Yahoo! Weather - Stuttgart, DE: Sunny, 3°C (37°F), 30in (1023mb), Light breeze 6kt (↓)
[1551.05] <&Tyrope> .weather jash
[1551.06] <@ Willie> TypeError: object of type 'NoneType' has no len() (file "/home/willie/jenni/willie/modules/weather.py", line 35, in woeid_search)

@tyrope
Copy link
Author

tyrope commented Mar 2, 2013

Signature: TypeError: object of type 'NoneType' has no len() (file "/home/willie/jenni/willie/modules/weather.py", line 35, in woeid_search)
from #YourPants at 2013-03-02 09:51:01.735773:
Message was: .weather jash
Traceback (most recent call last):
File "/home/willie/jenni/willie/bot.py", line 415, in call
"warning")
File "/home/willie/jenni/willie/modules/weather.py", line 137, in weather
woeid = woeid_search(location).find('woeid').text
File "/home/willie/jenni/willie/modules/weather.py", line 35, in woeid_search
if len(first_result) == 0:
TypeError: object of type 'NoneType' has no len()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Things to squish; generally used for issues
Projects
None yet
Development

No branches or pull requests

2 participants