[fs2zammad] fix error handling on ticket creation (previously ignored)
This commit is contained in:
parent
50084f6ab3
commit
ac8807167c
1 changed files with 4 additions and 0 deletions
|
@ -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 ###
|
||||
|
||||
|
|
Loading…
Reference in a new issue