From b7d7d4f5daa09dc3f1b77f90d549b8742369a718 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Sat, 17 Feb 2024 13:03:43 +0100 Subject: [PATCH] Fix sentry option --- recipes/clipper/all/conanfile.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/recipes/clipper/all/conanfile.py b/recipes/clipper/all/conanfile.py index a0edd28..a848cfd 100644 --- a/recipes/clipper/all/conanfile.py +++ b/recipes/clipper/all/conanfile.py @@ -59,13 +59,9 @@ def build(self): cmake.configure(build_script_folder=os.path.join(self.source_folder, "cpp")) cmake.build() - if self.options.enable_sentry: - # 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) - if sentry_project == "" or sentry_org == "": - raise ConanInvalidConfiguration("sentry_project or sentry_org is not set") - + sentry_project = self.conf.get("user.curaengine:sentry_project", "", check_type=str) + sentry_org = self.conf.get("user.curaengine:sentry_org", "", check_type=str) + if self.options.enable_sentry and os.environ.get('SENTRY_TOKEN', None) and sentry_project != "" and sentry_org != "": if which("sentry-cli") is None: self.output.warn("sentry-cli is not installed, skipping uploading debug symbols") else: