Skip to content

Commit

Permalink
Fix/exporter error handling (#1138)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyu-ms authored Oct 7, 2024
1 parent 1924474 commit f75f8b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testplan/common/exporters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ def run_exporter(
),
exporter,
)
result = exporter.export(source)
try:
result = exporter.export(source)
except Exception:
exp_result.traceback = traceback.format_exc()
except Exception:
exp_result.traceback = traceback.format_exc()
finally:
Expand Down

0 comments on commit f75f8b0

Please sign in to comment.