From: ThibG Date: Fri, 15 May 2020 09:38:12 +0000 (+0200) Subject: Fix GifReader exceptions (#13760) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=927f9ea4997676bcceea0d625703ac6ec66a68b2;p=mastodon.git Fix GifReader exceptions (#13760) --- diff --git a/lib/paperclip/gif_transcoder.rb b/lib/paperclip/gif_transcoder.rb index 64f12f963..9f3c8e8be 100644 --- a/lib/paperclip/gif_transcoder.rb +++ b/lib/paperclip/gif_transcoder.rb @@ -6,7 +6,7 @@ class GifReader EXTENSION_LABELS = [0xf9, 0x01, 0xff].freeze GIF_HEADERS = %w(GIF87a GIF89a).freeze - class GifReaderException; end + class GifReaderException < StandardError; end class UnknownImageType < GifReaderException; end