Whole file
sendgrid/python-http-client
The author described this change as “fix: update request exception logging and update tests (#145)”. It counts as a record because the check below fails on the code as it stood at 57ed611ff and passes on e1c869560, with nothing else changed between the two runs.
Projectsendgrid/python-http-client
Fix saved2020-08-20
Sharing licenceMIT · LICENSE
Change size+2 −2
What the code was meant to do, written into the code itself as a save note
fix: update request exception logging and update tests (#145)
The change
| 175 | 175 | try: | |
| 176 | 176 | return opener.open(request, timeout=timeout) | |
| 177 | 177 | except HTTPError as err: | |
| 178 | + | exc = handle_error(err) | |
| 179 | + | exc.__cause__ = None | |
| 178 | 180 | _logger.debug('{method} Response: {status} {body}'.format( | |
| 179 | 181 | method=request.get_method(), | |
| 180 | 182 | status=exc.status_code, | |
| 181 | 183 | body=exc.body)) | |
| 182 | - | exc = handle_error(err) | |
| 183 | - | exc.__cause__ = None | |
| 184 | 184 | raise exc | |
| 185 | 185 | ||
| 186 | 186 | def _(self, name): |
The check that tells the two apart
fail→pass·tests/test_unit.py::TestClient::test__getattr__
Check file tests/test_unit.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it57ed611ff548348f3cb44dab3974fb7d0537a7c2
Broken version dated2020-08-19
Modulepython_http_client.client
Units changedClient
Fingerprintdc767ff5653a61a3
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.