File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ def get_fat_manifest_and_response(
97
97
headersFATV2 = {"Accept" : DockerFAT_schema2_mimetype }
98
98
r = self ._request (http_method , "manifests/" + alias , headers = headersFATV2 ) # type: ignore[no-untyped-call]
99
99
except requests .exceptions .HTTPError as he :
100
- if he .response .status_code != 404 :
100
+ if he .response is None or he . response .status_code != 404 :
101
101
raise he
102
102
103
103
headersV2 = {"Accept" : DockerManifestV2MIMEType }
@@ -113,7 +113,7 @@ def get_parsed_manifest_and_dcd(
113
113
try :
114
114
manifest , r = self .get_manifest_and_response (alias )
115
115
except requests .exceptions .HTTPError as he :
116
- if he .response .status_code != 404 :
116
+ if he .response is None or he . response .status_code != 404 :
117
117
raise he
118
118
119
119
return None , None
You can’t perform that action at this time.
0 commit comments