diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2020-07-20 05:28:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-19 22:28:27 +0200 |
commit | 7540e235a2b387ca08cf57f8942d1b190d242808 (patch) | |
tree | 3f2c9a3eb9b163b6aac34c2aeca70cf867e4831e /app/services | |
parent | 47931db1f50db3b6773fbb3cc4645fdb4a4692eb (diff) |
Fix movie width and frame_rate returning nil (#14357)
* Fix movie width and frame_rate returning nil * Add StreamValidationError and raise * Fix code style
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/update_account_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/update_account_service.rb b/app/services/update_account_service.rb index 4172d5774..666db5c71 100644 --- a/app/services/update_account_service.rb +++ b/app/services/update_account_service.rb @@ -12,7 +12,7 @@ class UpdateAccountService < BaseService check_links(account) process_hashtags(account) end - rescue Mastodon::DimensionsValidationError => de + rescue Mastodon::DimensionsValidationError, Mastodon::StreamValidationError => de account.errors.add(:avatar, de.message) false end |