Skip to content
Sign UpLog In
Profile icon

MochiSepia

@abriani434
Repls
Community
abriani434
abriani434
shared a Post
1 year ago
'await' outside function error
I've encountered a very frustrating delay. I'm using the python environment and I'm having an error saying "SyntaxError: 'await' outside function". Do
AyoBot
Python
abriani434
abriani434
@Coder100 @InvisibleOne @VulcanWM thanks :) i'll try these and see if they work1 year ago
Coder100
Coder100
The reason why you have the error is because you unindented, so it was outside of an async function.1 year ago
Coder100
Coder100
All await keywords must be in an async function, like this: async def func(): await ... `1 year ago