From ac8807167c68703deab209ff7363d868e3445601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Tue, 7 May 2024 13:58:10 +0200 Subject: [PATCH] [fs2zammad] fix error handling on ticket creation (previously ignored) --- fs2zammad | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs2zammad b/fs2zammad index 8095b9f..72adaca 100755 --- a/fs2zammad +++ b/fs2zammad @@ -6,6 +6,7 @@ import os import pickle import sys import html2text +import traceback from zammad_py import ZammadAPI from zammad_py.api import Resource, TagList, TicketArticle @@ -245,6 +246,9 @@ def create_zammad_ticket(id, zammad, h2t, retries=3): print(f"Failed to import RT-#{id} .. ({retries} retries left)") if retries > 0: create_zammad_ticket(id, zammad, h2t, retries - 1) + else: + traceback.print_exc() + raise RuntimeError ### main logic ###