Skip to content

Python 3.14 emits SyntaxWarning for return in finally block #75

Description

@frf12

Importing pyobvector 0.2.28 on Python 3.14 emits a SyntaxWarning because ob_vec_json_table_client.py returns from a finally block.

Reproduction:

.../site-packages/pyobvector/client/ob_vec_json_table_client.py:799: SyntaxWarning: return in a finally block
return n_new_records

This is non-fatal on the normal path, but a return in finally can suppress exceptions from the try block. It also makes CLIs that import the package appear broken. Please move the return after cleanup (or otherwise avoid returning from finally) and consider Python 3.14 in the compatibility matrix.

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