Fix uncaught 422 and 500 errors (#11590)
This commit is contained in:
parent
1bc077dc74
commit
a8b0bb355d
2 changed files with 7 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue