Skip to content

Commit

Permalink
Merge pull request #74 from sinclert-canonical/pydantic-versions
Browse files Browse the repository at this point in the history
chose: loose Pydantic 2 version constraint
  • Loading branch information
nsklikas authored Nov 28, 2024
2 parents 580681e + d0cf4d7 commit d86e301
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/charms/glauth_k8s/v0/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ def _on_ldap_requested(self, event: LdapRequestedEvent) -> None:

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 6
LIBPATCH = 7

PYDEPS = ["pydantic~=2.5.3"]
PYDEPS = ["pydantic>=2.5.3"]

DEFAULT_RELATION_NAME = "ldap"
BIND_ACCOUNT_SECRET_LABEL_TEMPLATE = Template("relation-$relation_id-bind-account-secret")
Expand Down
2 changes: 1 addition & 1 deletion src/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __enter__(self) -> "Operation":
def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None:
if exc_type:
logger.error(
f"The database operation failed. The exception " f"{exc_type} raised: {exc_val}"
f"The database operation failed. The exception {exc_type} raised: {exc_val}"
)
self._session.rollback()
else:
Expand Down

0 comments on commit d86e301

Please sign in to comment.