Skip to content

Conversation

@sinisaos
Copy link
Member

Same as in the main Piccolo repository.

@sinisaos
Copy link
Member Author

@dantownsend I don't know why ci failed. Locally everything works on both Python 3.12 and Python 3.14. Local Postgres database is PostgreSQL 16.10.

@dantownsend
Copy link
Member

@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.

status_code=422,
)
except ForeignKeyViolationError as exception:
except (ForeignKeyViolationError, RestrictViolationError) as exception:
Copy link
Member Author

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.

Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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.

@dantownsend
Copy link
Member

Looks great, thanks 👍

@dantownsend dantownsend merged commit 489630d into piccolo-orm:master Oct 25, 2025
11 checks passed
@sinisaos sinisaos deleted the drop_py_39_add_py_314 branch October 26, 2025 06:33
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