The exception was no longer used

This commit is contained in:
Lin Jen-Shin 2017-02-16 22:29:29 +08:00
parent 9096647ff6
commit 37cc3aaefb

View file

@ -311,7 +311,7 @@ class ApplicationSetting < ActiveRecord::Base
errors.add(:default_artifacts_expiration, errors.add(:default_artifacts_expiration,
"can't be 0. Leave it blank for no expiration") "can't be 0. Leave it blank for no expiration")
end end
rescue ChronicDuration::DurationParseError => e rescue ChronicDuration::DurationParseError
errors.add(:default_artifacts_expiration, "is invalid") errors.add(:default_artifacts_expiration, "is invalid")
end end
end end