Skip to content

Unclear error on passing connection with autocommit=True on creation #21

Description

@abcdenis

Hi,

what I do:

  • create connection with autocommit=True and pass it to LiteQueue constructor

what I get:

  File ".../lib/python3.12/site-packages/litequeue.py", line 235, in __init__
    self.conn.execute("PRAGMA synchronous = NORMAL;")
sqlite3.OperationalError: Safety level may not be changed inside a transaction

what I expected to get:
error that connection has enabled autocommit field and it is unsupported by library

Thank you.

litequeue version 0.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions