Skip to content

Commit ca85e7f

Browse files
committed
Note additional exception in docs
1 parent 42e9770 commit ca85e7f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

postgres/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,8 @@ def unregister_model(self, ModelSubclass):
662662
663663
:param ModelSubclass: the :py:class:`~postgres.orm.Model` subclass to
664664
unregister
665-
:raises: :py:exc:`~postgres.NotRegistered`
665+
:raises: :py:exc:`~postgres.NotAModel`,
666+
:py:exc:`~postgres.NotRegistered`
666667
667668
If :py:class:`ModelSubclass` is registered for multiple types, it is
668669
unregistered for all of them.
@@ -690,7 +691,8 @@ def check_registration(self, ModelSubclass, include_subsubclasses=False):
690691
types
691692
692693
:rettype: string
693-
:raises: :py:exc:`~postgres.NotRegistered`
694+
:raises: :py:exc:`~postgres.NotAModel`,
695+
:py:exc:`~postgres.NotRegistered`
694696
695697
"""
696698
self._validate_model_subclass(ModelSubclass)

0 commit comments

Comments
 (0)