-
Notifications
You must be signed in to change notification settings - Fork 11
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
SyntaxError: Compiler improperly indenting try/else blocks #20
Comments
Duplicate of #18 (I think). For now, please pin Sanic-Router to version 0.4.1 and you won't see this error. |
Thanks, that version appears to behave as expected for this case. I assume there is a reason, but this repository is |
Yup. I'm going to make that change |
Can we close? |
Confirmed functional in new releases. |
After updating to Sanic 21.3 and bringing in sanic-routing, I am running into issues starting the server.
I can't find where the
try/else
part is being built to propose a solution, but here is a quick example that produces the error.EXAMPLE APP
EXCEPTION
ERROR
When I make a local modification to router.py to
print(self.find_route_src)
, it reveals this:The text was updated successfully, but these errors were encountered: