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 types of exceptions #592

Merged
merged 1 commit into from
Feb 10, 2020
Merged

Conversation

retrowaver
Copy link
Contributor

I'm not sure whether there is a case when this line is called and the account actually doesn't exist, but I'm sure that there is a case when it's called and the account exists - it happens when Instagram blocks your IP (see #555 ). Therefore I think it should return generic InstagramException instead.

I'm not sure if it works the same way in getMediasFromFeed() (line 492) - but I guess it's safer to throw a more broad exception there, too (and keep InstagramNotFoundException for 404 HTTP status only).

@retrowaver retrowaver requested a review from raiym February 6, 2020 14:10
@raiym
Copy link
Member

raiym commented Feb 10, 2020

Agreed

@retrowaver thank you for contribution

@raiym raiym merged commit 631c932 into postaddictme:master Feb 10, 2020
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.

2 participants