Skip to content

Commit c5ed100

Browse files
authored
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.
1 parent ce6e31b commit c5ed100

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • providers/amazon/tests/system/amazon/aws/utils

providers/amazon/tests/system/amazon/aws/utils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ def _fetch_from_ssm(key: str, test_name: str | None = None) -> str:
113113
log.info("No boto credentials found: %s", e)
114114
except ClientError as e:
115115
log.info("Client error when connecting to SSM: %s", e)
116-
except hook.conn.exceptions.ParameterNotFound as e:
117-
log.info("SSM does not contain any parameter for this test: %s", e)
118116
except KeyError as e:
119117
log.info(
120118
"SSM contains one parameter for this test, but not the requested value: %s",
121119
e,
122120
)
121+
except Exception as e:
122+
log.info("SSM does not contain any parameter for this test: %s", e)
123123
return value
124124

125125

0 commit comments

Comments
 (0)