From 9687e95d7ee3d9bbf1de543086f6d85f64c70de1 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Thu, 18 Jan 2024 15:16:14 +0100 Subject: [PATCH] Only enable Sentry upload when there is info to upload --- conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conanfile.py b/conanfile.py index 989058758e..2331bd7705 100644 --- a/conanfile.py +++ b/conanfile.py @@ -172,7 +172,7 @@ def build(self): if sentry_project == "" or sentry_org == "": raise ConanInvalidConfiguration("sentry_project or sentry_org is not set") - if which("sentry-cli") is None: + if which("sentry-cli") is None and self.settings.build_type != "Release": self.output.warn("sentry-cli is not installed, skipping uploading debug symbols") self.output.warn("sentry-cli is not installed, skipping release creation") else: