]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/banner_helper.rb
Enable image compression utils for image_optim
[rails.git] / app / helpers / banner_helper.rb
index 4e888173b34ca0e127ff4574239413d9a6b26792..661369454fb065b024985df35b347d0fb09c2f55 100644 (file)
@@ -4,7 +4,7 @@ module BannerHelper
       enddate = v[:enddate]
       begin
         parsed = enddate && Date.parse(enddate)
-      rescue
+      rescue StandardError
         parsed = nil
       end
       !parsed.is_a?(Date) || (parsed.is_a?(Date) && parsed.past?)