Skip to content

Commit

Permalink
Merge pull request #71 from seanh/mark-TransientError-retryable
Browse files Browse the repository at this point in the history
Mark TransientError retryable
  • Loading branch information
mmerickel committed Sep 30, 2019
2 parents 8579fbe + ef9c5f1 commit 59d6ef4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,4 @@ Contributors
- Donald Stufft, 2015/02/02
- Nick Stenning, 2016/09/06
- Steve Piercy, 2016/11/19
- Sean Hammond, 2019/09/27
7 changes: 7 additions & 0 deletions pyramid_tm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
except ImportError: # pragma: no cover
IRetryableError = zope.interface.Interface

try:
from pyramid_retry import mark_error_retryable
except ImportError: # pragma: no cover
mark_error_retryable = lambda error: None

mark_error_retryable(transaction.interfaces.TransientError)

from .compat import reraise
from .compat import text_

Expand Down

0 comments on commit 59d6ef4

Please sign in to comment.