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

Fix the update flag #53

Closed
wants to merge 1 commit into from
Closed

Conversation

mfabinski
Copy link

fix #52 by adding the specific exception handler in the inner exception handling block.

Now the update flag works as supposed:

matthias@seth:~/git/RedditImageGrab$ python redditdl.py cats ~/Bilder/cats --num 5 --update
Downloading images from "cats" subreddit
    Attempting to download URL[http://www.explodingkittens.com/kittyconvict?2] as [3v84lg].
    WRONG FILE TYPE: http://www.explodingkittens.com/kittyconvict?2 has type: text/html!
    Attempting to download URL[http://imgur.com/98fqWq0.jpg] as [51usgy.jpg].
    URL [http://imgur.com/98fqWq0.jpg] already downloaded.
    Update complete, exiting.
Downloaded 0 files

@mfabinski
Copy link
Author

Closing this pull request (there is a new version including test #57)

@mfabinski mfabinski closed this Sep 12, 2016
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

Successfully merging this pull request may close these issues.

--update flag is not working
1 participant