Skip to content

Commit

Permalink
Fix Sentry option
Browse files Browse the repository at this point in the history
  • Loading branch information
jellespijker committed Feb 17, 2024
1 parent 35a9f5c commit f2ab613
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2024 UltiMaker
# CuraEngine is released under the terms of the AGPLv3 or higher
from io import StringIO
from shutil import which
from os import path
import os

Expand Down Expand Up @@ -66,7 +66,9 @@ def export_sources(self):
def config_options(self):
if not self.options.enable_plugins:
del self.options.enable_remote_plugins
if self.conf.get("user.curaengine:sentry_url", "", check_type=str) == "":
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 os.environ.get('SENTRY_TOKEN', None) is None or sentry_project == "" or sentry_org == "":
del self.options.enable_sentry

def configure(self):
Expand Down

0 comments on commit f2ab613

Please sign in to comment.