diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-12-15 12:55:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 12:55:29 +0100 |
commit | 1045549f85041b13002801808b30a332c3a68c61 (patch) | |
tree | 1ef1f377ee973a8b2ef69b0bf3fc4683d03f2ec5 /config | |
parent | 75d2762fdf600de6785f612caf182b32064a9bf6 (diff) |
Add stoplight for object storage failures, return HTTP 503 (#13043)
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/paperclip.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 25adcd8d6..9ad7fd814 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -113,3 +113,14 @@ else end Paperclip.options[:content_type_mappings] = { csv: Import::FILE_TYPES } + +# In some places in the code, we rescue this exception, but we don't always +# load the S3 library, so it may be an undefined constant: + +unless defined?(Seahorse) + module Seahorse + module Client + class NetworkingError < StandardError; end + end + end +end |