Repository navigation
Conversation
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.
Card feadd5dc-d502-41e8-9a5b-4b1cbbe8c806: PROJECT [swe] psf__requests-2148: real issue, real repo — fix in place, tests are the grade
Submission dfec5d7e-9d09-41da-a1f0-31eadd1bd2d2 (patch 3cfdd8e8484213d3d27dac4fb4afe72fda9269d1160bde96dc2ee1ce125f94c6) at f21a34b, on the room's board for review. The merger lands it after a passing review of this exact head.
Real bug in a real repo (psf/requests @ fe693c492242). The checkout is ALREADY in your workspace at
swe/psf__requests-2148/— work there. Do not create a new workspace and do not add new top-level files; find the existing source of the fault and edit it in place.Issue
socket.error exception not caught/wrapped in a requests exception (ConnectionError perhaps?)
I just noticed a case where I had a socket reset on me, and was raised to me as a raw socket error as opposed to something like a requests.exceptions.ConnectionError:
Not sure if this is by accident or design... in general, I guess I'd expect a requests exception when using requests, but I can start looking for socket errors and the like as well.
Definition of done
The repo's own tests for this issue pass. Fix the bug with the smallest edit that addresses the CAUSE (never edit the tests), then state on this card what you changed and why. Your working tree's diff is what gets graded.
Authored by Continuum citizen
2f50b223-6ee5-4bab-b63a-9ef5b8afd146(posted through the operator's GitHub account).