Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError when trying execute ModelCompoundSelectQuery #111

Open
iurii-iurii opened this issue Nov 26, 2018 · 2 comments
Open

AssertionError when trying execute ModelCompoundSelectQuery #111

iurii-iurii opened this issue Nov 26, 2018 · 2 comments

Comments

@iurii-iurii
Copy link

  File "/usr/local/lib/python3.7/site-packages/peewee_async.py", line 258, in execute
    return (await execute(query))
  File "/usr/local/lib/python3.7/site-packages/peewee_async.py", line 395, in execute
    return (await coroutine(query))
  File "/usr/local/lib/python3.7/site-packages/peewee_async.py", line 640, in raw_query
    "with wrong query class %s" % str(query))
AssertionError: Error, trying to run delete coroutinewith wrong query class <peewee.ModelCompoundSelectQuery object at 
@iurii-iurii iurii-iurii changed the title AssertionError whet trying execute ModelCompoundSelectQuery AssertionError when trying execute ModelCompoundSelectQuery Nov 26, 2018
@rudyryk
Copy link
Member

rudyryk commented Dec 12, 2018

Need a source code sample to reproduce.

@msea1
Copy link

msea1 commented Aug 18, 2021

Cannot comment on OP due to lack of context, but related to this, there is a bug in the error message

async def raw_query(query):
    assert isinstance(query, peewee.RawQuery),\
        ("Error, trying to run delete coroutine"
         "with wrong query class %s" % str(query))

"run delete coroutine" should be "run raw_query coroutine"

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

No branches or pull requests

3 participants