Skip to content

Commit 9ef3e4d

Browse files
committed
add yet another corner case
1 parent e259ace commit 9ef3e4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

activestorage/active.py

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ def return_storage_type(uri):
3232
return
3333
else:
3434
return "s3"
35+
except requests.exceptions.ConnectionError as exc: # eg invalid link or offline
36+
print(exc)
37+
return
3538
response = resp.headers
3639

3740
# https files on NGINX don't have "gateway-protocol" key

0 commit comments

Comments
 (0)