From 5ac5328fa8e81aac6deadff3505ec9ea8d871e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= Date: Mon, 19 Apr 2021 16:03:11 +0000 Subject: [PATCH] don't add an empty Threads interface section --- coredump_uploader/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coredump_uploader/__init__.py b/coredump_uploader/__init__.py index 6ceaf4c..4dad99b 100644 --- a/coredump_uploader/__init__.py +++ b/coredump_uploader/__init__.py @@ -590,9 +590,11 @@ class CoredumpUploader(object): "app": {"app_name": app_name, "argv": args,}, }, "debug_meta": {"images": image_list}, - "threads": {"values": thread_list}, "sdk": {"name": sdk_name, "version": sdk_version,}, } + if thread_list: + data["threads"] = {"values": thread_list} + event_id = sentry_sdk.capture_event(data) print("Core dump sent to sentry: %s" % (event_id))