There was an error while loading. Please reload this page.
1 parent 1894003 commit c9d9d7cCopy full SHA for c9d9d7c
pymongo/asynchronous/mongo_client.py
@@ -1195,7 +1195,8 @@ def __del__(self) -> None:
1195
ResourceWarning,
1196
stacklevel=2,
1197
)
1198
- except AttributeError:
+ except (AttributeError, TypeError):
1199
+ # Ignore errors at interpreter exit.
1200
pass
1201
1202
def _close_cursor_soon(
pymongo/synchronous/mongo_client.py
@@ -1193,7 +1193,8 @@ def __del__(self) -> None:
1193
1194
0 commit comments