Skip to content

Warn when an await may be missing #13

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

Merged
merged 1 commit into from
Jan 16, 2022

Conversation

dhalbert
Copy link
Contributor

If this assert fails, it is almost invariably due to a missing await:
https://github.com/dhalbert/Adafruit_CircuitPython_asyncio/blob/e8c2d389758d94629a12bfab92c6b11f2eb6cdbf/asyncio/core.py#L68

Add a message suggesting that the user should check for a missing await.

I have seen this multiple times, and someone else now saw it as well, for the same reason.

@dhalbert dhalbert requested a review from a team January 16, 2022 22:16
@dhalbert dhalbert merged commit 2ffc31f into adafruit:main Jan 16, 2022
@dhalbert dhalbert deleted the forgot-await-message branch January 16, 2022 23:07
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jan 17, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_asyncio to 0.5.5 from 0.5.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_asyncio#13 from dhalbert/forgot-await-message

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE to 8.1.4 from 8.1.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#149 from tekktrik/doc/add-missing-files

Updating https://github.com/adafruit/Adafruit_CircuitPython_hashlib to 1.4.1 from 1.4.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_hashlib#14 from aziascreations/master
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

Successfully merging this pull request may close these issues.

2 participants