Fix typo causing incorrect error being raised in blurhash processing failure (#32104)

pull/32105/head
Claire 2024-09-26 09:40:59 +02:00 committed by GitHub
parent db332553c9
commit 886baa5e35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Paperclip
width, height, data = blurhash_params
# Guard against segfaults if data has unexpected size
raise RangeError("Invalid image data size (expected #{width * height * 3}, got #{data.size})") if data.size != width * height * 3 # TODO: should probably be another exception type
raise RangeError, "Invalid image data size (expected #{width * height * 3}, got #{data.size})" if data.size != width * height * 3 # TODO: should probably be another exception type
attachment.instance.blurhash = Blurhash.encode(width, height, data, **(options[:blurhash] || {}))