Skip to content

Error deleting closed connection on exit #198

Description

@cvickery

psycopg 3.0.7
Python 3.10.1
Postgres 14.1
MacOS 12.1 (Monterey)
Mac mini (M1 2020)

Applications run to completion, then when exiting, throw the following exception:

Exception ignored in: <function BaseConnection.__del__ at 0x102356dd0>
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/psycopg/connection.py", line 140, in __del__
  File "/opt/homebrew/lib/python3.10/site-packages/psycopg/connection.py", line 161, in closed
  File "/opt/homebrew/lib/python3.10/site-packages/psycopg/pq/pq_ctypes.py", line 205, in status
TypeError: 'NoneType' object is not callable
Exception ignored in: <function PGconn.__del__ at 0x1021bbb50>
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/psycopg/pq/pq_ctypes.py", line 91, in __del__
TypeError: 'NoneType' object is not callable
Exception ignored in: <function PGresult.__del__ at 0x102232320>
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/psycopg/pq/pq_ctypes.py", line 723, in __del__
  File "/opt/homebrew/lib/python3.10/site-packages/psycopg/pq/pq_ctypes.py", line 733, in clear
TypeError: 'NoneType' object is not callable

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions