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

Fails If Image Not Found #25

Open
everythingfunctional opened this issue Sep 9, 2016 · 0 comments
Open

Fails If Image Not Found #25

everythingfunctional opened this issue Sep 9, 2016 · 0 comments

Comments

@everythingfunctional
Copy link

At lines 169-170, if a suitable image isn't found, the script crashes, since nothing is returned from the get_top_image function in that case. Here's the error message:

Traceback (most recent call last):
  File "./change_wallpaper_reddit.py", line 170, in <module>
    if "url" not in image:
TypeError: argument of type 'NoneType' is not iterable

It's causing problems when trying to change my background hourly with the --time hour option.

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