Mercurial > hg
comparison hgext/remotefilelog/basestore.py @ 41250:8a6995513d9a
remotefilelog: fix logging in retry decorator
This still fails with an error about no exception being available to
re-raise, but so it goes.
Differential Revision: https://phab.mercurial-scm.org/D5600
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 16 Jan 2019 10:57:38 -0500 |
parents | ad21fbcb1ba5 |
children | 194e43c2bac9 |
comparison
equal
deleted
inserted
replaced
41249:c891a11ffe27 | 41250:8a6995513d9a |
---|---|
418 try: | 418 try: |
419 return fn(self, *args, **kwargs) | 419 return fn(self, *args, **kwargs) |
420 except KeyError: | 420 except KeyError: |
421 pass | 421 pass |
422 # retries exhausted | 422 # retries exhausted |
423 retrylog('retries exhausted in %s, raising KeyError\n' % funcname) | 423 retrylog('retries exhausted in %s, raising KeyError\n' % |
424 pycompat.sysbytes(funcname)) | |
424 raise | 425 raise |
425 return wrapped | 426 return wrapped |