From a64f3dc5f98f9ad6b7fbae55421f032117bb86d2 Mon Sep 17 00:00:00 2001 From: Voicu Chirtes Date: Wed, 4 Oct 2023 17:12:15 -0700 Subject: [PATCH 1/2] Bugfix to handle empty datasetarns --- cid/helpers/quicksight/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cid/helpers/quicksight/__init__.py b/cid/helpers/quicksight/__init__.py index ac8dd19b..07df58a5 100644 --- a/cid/helpers/quicksight/__init__.py +++ b/cid/helpers/quicksight/__init__.py @@ -258,7 +258,7 @@ def _safe_int(value, default=None): # Fetch datasets - for dataset in dashboard.version.get('DataSetArns'): + for dataset in dashboard.version.get('DataSetArns',[]): dataset_id = dataset.split('/')[-1] try: _dataset = self.describe_dataset(id=dataset_id) From 00fc0a8349cdc78194fae5b4706bcb413b069ac1 Mon Sep 17 00:00:00 2001 From: Voicu Chirtes Date: Tue, 17 Oct 2023 10:23:20 -0700 Subject: [PATCH 2/2] Fixed spacing --- cid/helpers/quicksight/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cid/helpers/quicksight/__init__.py b/cid/helpers/quicksight/__init__.py index 07df58a5..5fd429f4 100644 --- a/cid/helpers/quicksight/__init__.py +++ b/cid/helpers/quicksight/__init__.py @@ -258,7 +258,7 @@ def _safe_int(value, default=None): # Fetch datasets - for dataset in dashboard.version.get('DataSetArns',[]): + for dataset in dashboard.version.get('DataSetArns', []): dataset_id = dataset.split('/')[-1] try: _dataset = self.describe_dataset(id=dataset_id)