Fix uncaught 422 and 500 errors (#11590)
This commit is contained in:
1 parent
1bc077dc74
commit
a8b0bb355d
2 files changed
+7
No files matched your search
@@ -7,6 +7,8 @@ class MediaProxyController < ApplicationController
|
||||
|
||||
before_action :authenticate_user!, if: :whitelist_mode?
|
||||
|
||||
rescue_from ActiveRecord::RecordInvalid, with: :not_found
|
||||
|
||||
def show
|
||||
RedisLock.acquire(lock_options) do |lock|
|
||||
if lock.acquired?
|
||||
|
||||
Reference in new issue
Block a user