diff --git a/src/neo4j/exceptions.py b/src/neo4j/exceptions.py index d759a65f..84f00559 100644 --- a/src/neo4j/exceptions.py +++ b/src/neo4j/exceptions.py @@ -608,6 +608,12 @@ def is_retryable(self) -> bool: retry. This method makes mostly sense when implementing a custom retry policy in conjunction with :ref:`explicit-transactions-ref`. + .. warning:: + + Auto-commit transactions + (:meth:`.Session.run`/:meth:`.AsyncSession.run`) are not retryable + regardless of this value. + :returns: :data:`True` if the error is retryable, :data:`False` otherwise. @@ -818,6 +824,12 @@ def is_retryable(self) -> bool: retry. This method makes mostly sense when implementing a custom retry policy in conjunction with :ref:`explicit-transactions-ref`. + .. warning:: + + Auto-commit transactions + (:meth:`.Session.run`/:meth:`.AsyncSession.run`) are not retryable + regardless of this value. + :returns: :data:`True` if the error is retryable, :data:`False` otherwise.