Skip to content

Commit

Permalink
fix: typo in exception message for ImproperlyConfiguredException (#3885)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zimzozaur authored Nov 30, 2024
1 parent c6afbea commit 5dd8c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litestar/di.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(
sync_to_thread: Run sync code in an async thread. Defaults to False.
"""
if not callable(dependency):
raise ImproperlyConfiguredException("Provider dependency must a callable value")
raise ImproperlyConfiguredException("Provider dependency must be a callable value")

is_class_dependency = isclass(dependency)
self.has_sync_generator_dependency = isgeneratorfunction(
Expand Down

0 comments on commit 5dd8c9e

Please sign in to comment.