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