Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ See also https://github.com/neo4j/neo4j-python-driver/wiki for a full changelog.
- Remove deprecated exports from `neo4j`:
- `log`, `Config`, `PoolConfig`, `SessionConfig`, `WorkspaceConfig` (internal - no replacement)
- `SummaryNotificationPosition` (use `SummaryInputPosition` instead)
- Changed errors raised under certain circumstances
- `ConfigurationError` if the passed `auth` parameters is not valid (instead of `AuthError`)
- This improves the differentiation between `DriverError` for client-side errors and `Neo4jError` for server-side errors.


## Version 5.28
Expand Down
5 changes: 2 additions & 3 deletions src/neo4j/_auth_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from dataclasses import dataclass

from .api import Auth
from .exceptions import AuthError
from .exceptions import ConfigurationError


if t.TYPE_CHECKING:
Expand Down Expand Up @@ -321,7 +321,6 @@ def to_auth_dict(auth: _TAuth) -> dict[str, t.Any]:
try:
return vars(auth)
except (KeyError, TypeError) as e:
# TODO: 6.0 - change this to be a DriverError (or subclass)
raise AuthError(
raise ConfigurationError(
f"Cannot determine auth details from {auth!r}"
) from e