From 1073dfca6d28bf0c9304df0667d3c4c663697935 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 12 Jun 2024 14:39:53 -0400 Subject: [PATCH] chore: always return tuple in _upload_js_sourcemaps_config --- tubular/scripts/frontend_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tubular/scripts/frontend_utils.py b/tubular/scripts/frontend_utils.py index aab22847..bfa8d7a8 100755 --- a/tubular/scripts/frontend_utils.py +++ b/tubular/scripts/frontend_utils.py @@ -250,19 +250,19 @@ def _upload_js_sourcemaps_config(self): # before executing the Datadog CLI. The Datadog documentation suggests using a dedicated Datadog API key: # https://docs.datadoghq.com/real_user_monitoring/guide/upload-javascript-source-maps/ self.LOG('Could not find DATADOG_API_KEY environment variable while uploading source maps.') - return + return None, None service = app_config.get('DATADOG_SERVICE') if not service: self.LOG('Could not find DATADOG_SERVICE for app {} while uploading source maps.'.format(self.app_name)) - return + return None, None # Determine version for deployment, prioritizing app-specific version override, if any, before # default APP_VERSION commit SHA version. version = app_config.get('DATADOG_VERSION') or app_config.get('APP_VERSION') if not version: self.LOG('Could not find version for app {} while uploading source maps.'.format(self.app_name)) - return + return service, None # Successfully determined service and version for the app deployment return service, version