Improvement for issue #178 in beeswithmachineguns, no helpful informa…#199
Open
FliesLikeABrick wants to merge 1 commit intonewsapps:masterfrom
Open
Improvement for issue #178 in beeswithmachineguns, no helpful informa…#199FliesLikeABrick wants to merge 1 commit intonewsapps:masterfrom
FliesLikeABrick wants to merge 1 commit intonewsapps:masterfrom
Conversation
… information printed for _sting request failures, and is a fatal error. Modified to be non-fatal, prints error to stderr. This is not ideal, urllib.errors does not seem to exist on python2, was unable to find a way to catch HTTPError or URLERror specifically, so had to go with overly-broad exception catching
Contributor
|
Perhaps look at switching to urllib3 instead? It’s the modern alternative and should make it easier to deal with this. |
Contributor
Author
|
@cosmin heh, I have been narrowly avoiding that since I wasn't sure about broaching the larger topic of python2 vs 3 support. I am happy to create a patch to change to urllib3 if we are ok with adding another non-stdlib dependency for python2. Thoughts? |
Contributor
|
I think that’s fine, better to add that dependency than deal with the urllib cluster |
Contributor
Author
|
ok, I will see work on this branch further (leaving the PR open) and take a shot at adapting to urllib3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improvement for #178 , no helpful information printed for _sting request failures, and is a fatal error. Modified to be non-fatal, prints error to stderr. This is not ideal, urllib.errors does not seem to exist on python2, was unable to find a way to catch HTTPError or URLERror specifically, so had to go with overly-broad exception catching