ormar icon indicating copy to clipboard operation
ormar copied to clipboard

Error awaiting None

Open mekanix opened this issue 1 year ago • 0 comments

Describe the bug When running tests on FreeBSD, I get the error that None can not be awaited. Given how initialize_models is defined, it does implicitly return None. Adding dummy corrutine on that line like return asyncio.sleep(0) "fixes" the problem. I'm not sure if it's only FreeBSD or some combination of versions of python (3.9 here) and libraries. In any case, I can send a PR, but what would be accepted approach? While my hack works, I doubt it's acceptable.

mekanix avatar Aug 08 '23 09:08 mekanix