Skip to content

Commit aa62e06

Browse files
committed
implement review feedback by removing code comment and MD in error msg
Signed-off-by: tarilabs <matteo.mortari@gmail.com>
1 parent 4f6af1f commit aa62e06

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

oras/auth/ecr.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,11 @@ def authenticate_request(
5353
logger.warning(f"realm: {h.realm} did not match expected pattern.")
5454
return super().request_token(h)
5555
region = m.group("region")
56-
try: # avoid mandatory requirement on `boto3`
56+
try:
5757
import boto3
5858
except ImportError as e:
5959
msg = """the `boto3` dependency is required to support authentication to this registry.
60-
Make sure to install the required extra, e.g.:
61-
62-
```sh
63-
pip install oras[ecr]
64-
```
60+
Make sure to install the required extra "ecr", e.g.: pip install oras[ecr].
6561
"""
6662
raise ImportError(msg) from e
6763
ecr = boto3.client("ecr", region_name=region)

0 commit comments

Comments
 (0)