From 11a84b900fa6b333fbfe3ef21dc8203a99fa329a Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Mon, 25 Sep 2017 15:34:17 -0700 Subject: [PATCH] p4fastimport we must return the value from the function we are decorating We must correctly return the value from the function we are decorating. Test Plan: run tests Differential Revision: https://phab.mercurial-scm.org/D767 --- hgext3rd/p4fastimport/p4.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hgext3rd/p4fastimport/p4.py b/hgext3rd/p4fastimport/p4.py index 04bbdd4fb3..505091af48 100644 --- a/hgext3rd/p4fastimport/p4.py +++ b/hgext3rd/p4fastimport/p4.py @@ -18,8 +18,7 @@ def retry(num=3, sleeps=.3): def wrapper(*args, **kwargs): for _try in range(1, num + 1): try: - function(*args, **kwargs) - return + return function(*args, **kwargs) except Exception: if _try == num: raise