From b4798bbb6c0116dbeaa3abf15e35e532a6bcc233 Mon Sep 17 00:00:00 2001
From: Jelle Spijker <jelle.spijker@ultimaker.com>
Date: Thu, 18 Jan 2024 15:06:06 +0100
Subject: [PATCH] Only enable Sentry upload when there is info to upload

---
 recipes/clipper/all/conanfile.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes/clipper/all/conanfile.py b/recipes/clipper/all/conanfile.py
index 044def0..74fc17e 100644
--- a/recipes/clipper/all/conanfile.py
+++ b/recipes/clipper/all/conanfile.py
@@ -60,7 +60,7 @@ def build(self):
         cmake.configure(build_script_folder=os.path.join(self.source_folder, "cpp"))
         cmake.build()
 
-        if self.options.get_safe("enable_sentry", False):
+        if self.options.get_safe("enable_sentry", False) and self.settings.build_type != "Release":
             # Upload debug symbols to sentry
             sentry_project = self.conf.get("user.curaengine:sentry_project", "", check_type=str)
             sentry_org = self.conf.get("user.curaengine:sentry_org", "", check_type=str)