We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f6af1f commit aa62e06Copy full SHA for aa62e06
oras/auth/ecr.py
@@ -53,15 +53,11 @@ def authenticate_request(
53
logger.warning(f"realm: {h.realm} did not match expected pattern.")
54
return super().request_token(h)
55
region = m.group("region")
56
- try: # avoid mandatory requirement on `boto3`
+ try:
57
import boto3
58
except ImportError as e:
59
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
- ```
+ Make sure to install the required extra "ecr", e.g.: pip install oras[ecr].
65
"""
66
raise ImportError(msg) from e
67
ecr = boto3.client("ecr", region_name=region)
0 commit comments