Commit 37cc3aae authored by Lin Jen-Shin's avatar Lin Jen-Shin

The exception was no longer used

parent 9096647f
......@@ -311,7 +311,7 @@ class ApplicationSetting < ActiveRecord::Base
errors.add(:default_artifacts_expiration,
"can't be 0. Leave it blank for no expiration")
end
rescue ChronicDuration::DurationParseError => e
rescue ChronicDuration::DurationParseError
errors.add(:default_artifacts_expiration, "is invalid")
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment