GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Exception ignored in: <function Connection.__del__ at ...> TypeError: 'ABCMeta' object does not support the context manager protocol. · Issue #63 · FirebirdSQL/python3-driver

Exception ignored in: <function Connection.__del__ at ...> TypeError: 'ABCMeta' object does not support the context manager protocol. #63

New issue
Copy link
New issue
Copy link
Closed
#64
Closed
Exception ignored in: <function Connection.__del__ at ...> TypeError: 'ABCMeta' object does not support the context manager protocol.#63
#64
Copy link

Description

@fdcastel
fdcastel
opened on Jan 25, 2026
Issue body actions

Related #51.

@pcisar Looks like there is still a problem with this. The current code:

            with contextlib.suppress:
                self._att.detach()

causes:

Exception ignored in: <function Connection.__del__ at 0x000001F220A48400>
Traceback (most recent call last):
  File "C:\Temp\dwdb-workspace\dwdb\.venv\Lib\site-packages\firebird\driver\core.py", line 1802, in __del__
    with contextlib.suppress:
TypeError: 'ABCMeta' object does not support the context manager protocol

It needs to be adjusted to:

            with contextlib.suppress(DatabaseError):
                self._att.detach()

This correctly suppresses the exception and doesn't display the Exception ignored message.

Activity

  1. fdcastel
    added a commit that references this issue on Jan 25, 2026

    Specify exception type in contextlib.suppress(). Fix FirebirdSQL#63.

    This issue will close once commit 2efbed3 is merged into the 'master' branch.
    2efbed3
  2. pcisar
    added a commit that references this issue on Jan 26, 2026

    Merge pull request #64 from fdcastel/fix-issue-63

    This issue will close once commit ea14774 is merged into the 'master' branch.
    ea14774
  3. pcisar
    closed this as completedin #64on Jan 26, 2026
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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.