From e0bff6a35f6279cc442f489bec862ace839a7ef0 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 21 Aug 2017 18:21:36 +0000 Subject: [PATCH] Also, kwargs. --- roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 b/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 index ea51ee59ff..015c3a70ea 100644 --- a/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 +++ b/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 @@ -183,7 +183,7 @@ The Fedora admins. """ -def resilient_partial(fn, *initial): +def resilient_partial(fn, *initial, **kwargs): """ A decorator that partially applies arguments. It additionally catches all raised exceptions, prints them, but then returns @@ -196,7 +196,7 @@ def resilient_partial(fn, *initial): def wrapper(*additional): try: full = initial + additional - return fn(*full) + return fn(*full, **kwargs) except Exception as e: traceback.print_exc() return None