-
Notifications
You must be signed in to change notification settings - Fork 26
drop Python 3.9 and adds support for Python 3.14 #317
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
drop Python 3.9 and adds support for Python 3.14 #317
Conversation
|
@dantownsend I don't know why ci failed. Locally everything works on both |
|
@sinisaos I'm on my phone, so can't check properly but maybe the exception name changed or something, and we're not catching it. |
…because everything works locally
| status_code=422, | ||
| ) | ||
| except ForeignKeyViolationError as exception: | ||
| except (ForeignKeyViolationError, RestrictViolationError) as exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added RestrictViolationError alongside ForeignKeyViolationError and the tests passed. Can you check if that is good enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if you have a different version of asyncpg locally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. It's a fresh virtualenv with Piccolo API requirements. It passed locally even without this change, but in ci it fails and throws RestrictViolationError.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I think this change is fine. It might be CI is running a slightly different Postgres version.
|
Looks great, thanks 👍 |
Same as in the main Piccolo repository.