Fix uncaught 422 and 500 errors (#11590)

This commit is contained in:
Eugen Rochko 2019-08-18 18:04:18 +02:00 committed by GitHub
parent 1bc077dc74
commit a8b0bb355d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -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?