Skip to content

Commit

Permalink
refactor: tidy NoRegionError message
Browse files Browse the repository at this point in the history
  • Loading branch information
tekumara committed Oct 8, 2024
1 parent 75c4aa6 commit 22f456d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aec/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def main(args: list[str] = sys.argv[1:]) -> None:
f"NoCredentialsError: {e}.\n\nAuthenticate with the appropriate AWS role before retrying.", file=sys.stderr
)
except botocore.exceptions.NoRegionError as e:
print(f"NoRegionError: {e}.\n\nAuthenticate with the appropriate AWS role before retrying.", file=sys.stderr)
print(f"NoRegionError: {e}\n\nAuthenticate with the appropriate AWS role before retrying.", file=sys.stderr)

except RuntimeError as e:
if "Credentials were refreshed" in e.args[0]:
Expand Down

0 comments on commit 22f456d

Please sign in to comment.