Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

TypeError: catching classes that do not inherit from BaseException is not allowed #1016

@SuryaSrikanthsml

Description

@SuryaSrikanthsml

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

If you are still having issues, please be sure to include as much information as possible:

Environment details

  • OS:
  • Python version: 3.7
  • pip version:
  • google-auth version: 2.6.3

Steps to reproduce

  1. python Google app Engine standard environment, have google-auth in requirements.txt.
  2. Occurs when an instance is terminated.

"Traceback (most recent call last):
File "/layers/google.python.pip/pip/lib/python3.7/site-packages/google/auth/transport/requests.py", line 154, in del
File "/layers/google.python.pip/pip/lib/python3.7/site-packages/requests/sessions.py", line 737, in close
File "/layers/google.python.pip/pip/lib/python3.7/site-packages/requests/adapters.py", line 326, in close
File "/layers/google.python.pip/pip/lib/python3.7/site-packages/urllib3/poolmanager.py", line 223, in clear
File "/layers/google.python.pip/pip/lib/python3.7/site-packages/urllib3/_collections.py", line 100, in clear
File "/layers/google.python.pip/pip/lib/python3.7/site-packages/urllib3/poolmanager.py", line 174, in
File "/layers/google.python.pip/pip/lib/python3.7/site-packages/urllib3/connectionpool.py", line 498, in close
TypeError: catching classes that do not inherit from BaseException is not allowed"

Unable to figure out if the error is in urllib3 or google-auth, was working fine with version 2.6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions