Ensure HTTPError.response is not None
The implementation of `HTTPError` in `requests` does not guarantee that the `response` property will always be set. So we need to ensure it is not `None` before looking for the return code, for example. This also makes mypy checks pass again, as `types-request` was updated in 2.31.0.9 to better match this particular aspect. See: https://github.com/python/typeshed/pull/10875
parent
968ddef2
No related branches found
No related tags found
Showing
- swh/lister/bioconductor/lister.py 1 addition, 0 deletionsswh/lister/bioconductor/lister.py
- swh/lister/bitbucket/lister.py 1 addition, 1 deletionswh/lister/bitbucket/lister.py
- swh/lister/cgit/lister.py 1 addition, 0 deletionsswh/lister/cgit/lister.py
- swh/lister/gitlab/lister.py 1 addition, 0 deletionsswh/lister/gitlab/lister.py
- swh/lister/gitweb/lister.py 1 addition, 0 deletionsswh/lister/gitweb/lister.py
- swh/lister/gogs/lister.py 2 additions, 1 deletionswh/lister/gogs/lister.py
- swh/lister/stagit/lister.py 1 addition, 0 deletionsswh/lister/stagit/lister.py
Please register or sign in to comment