Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

当我使用事务的时候, 遇到了点问题 #2

Open
wkmx opened this issue May 29, 2019 · 0 comments
Open

当我使用事务的时候, 遇到了点问题 #2

wkmx opened this issue May 29, 2019 · 0 comments

Comments

@wkmx
Copy link

wkmx commented May 29, 2019

当我使用事务的时候,
with database.atomic(): pass

Traceback (most recent call last): File "pee.py", line 42, in <module> with database.atomic() as f: File "/opt/pyVirtualenv/peewee/lib/python3.6/site-packages/peewee.py", line 4445, in __enter__ if self.db.transaction_depth() == 0: File "/opt/pyVirtualenv/peewee/lib/python3.6/site-packages/peewee.py", line 3880, in transaction_depth return len(self._local.transactions) AttributeError: 'AioMySQLDatabase' object has no attribute '_local'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant