Skip to content

Commit

Permalink
Fixing linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Skipper committed Dec 19, 2023
1 parent f16f69c commit 7599c2b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions runway/context/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import TYPE_CHECKING, Any, Optional, Union, cast

import boto3
import botocore.exceptions

from ..aws_sso_botocore.session import Session
from ..cfngin.ui import ui
Expand Down Expand Up @@ -173,6 +174,6 @@ def _inject_profile_credentials(self) -> None: # cov: ignore
self.env.vars["AWS_SESSION_TOKEN"] = frozen_creds.token
else:
raise ValueError("Credentials could not be retrieved from the session.")
except Exception as e:
# Handle the exception as needed
self.logger.error("An error occurred: %s", e)
except botocore.exceptions.BotoCoreError as boto_error:
# Handle specific boto core exceptions
self.logger.error("BotoCoreError occurred: %s", boto_error)

0 comments on commit 7599c2b

Please sign in to comment.