This is an automated email from the ASF dual-hosted git repository.
eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new c5ed10010a5 Handle exception when building amazon documentation
(#50417)
c5ed10010a5 is described below
commit c5ed10010a5a5a7b34d5fb0d8d70a6d70b35ddb3
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat May 10 06:18:14 2025 +0200
Handle exception when building amazon documentation (#50417)
There was an exception thrown when importing example dags when
generating amazon documentation, which prevented the documentation
build to generate link to sources of embedded examples.
The exception was caused by raising an exception while trying to
handle another exeception.
---
providers/amazon/tests/system/amazon/aws/utils/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/providers/amazon/tests/system/amazon/aws/utils/__init__.py
b/providers/amazon/tests/system/amazon/aws/utils/__init__.py
index 2555911c346..2cc99480b1b 100644
--- a/providers/amazon/tests/system/amazon/aws/utils/__init__.py
+++ b/providers/amazon/tests/system/amazon/aws/utils/__init__.py
@@ -113,13 +113,13 @@ def _fetch_from_ssm(key: str, test_name: str | None =
None) -> str:
log.info("No boto credentials found: %s", e)
except ClientError as e:
log.info("Client error when connecting to SSM: %s", e)
- except hook.conn.exceptions.ParameterNotFound as e:
- log.info("SSM does not contain any parameter for this test: %s", e)
except KeyError as e:
log.info(
"SSM contains one parameter for this test, but not the requested
value: %s",
e,
)
+ except Exception as e:
+ log.info("SSM does not contain any parameter for this test: %s", e)
return value