Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrd committed Nov 17, 2022
1 parent 05c007c commit f84482f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dictdatabase/object_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ def _get_item_model(cls):
for type_args in get_args(base):
if issubclass(type_args, FileDictItemModel):
return type_args
raise AttributeError("FileDictModel must specify a FileDictItemModel")
raise AttributeError(
"FileDictModel must specify a FileDictItemModel "
"(e.g. Users(FileDictModel[User]))"
)


@classmethod
Expand Down

0 comments on commit f84482f

Please sign in to comment.