[katello-devel] 'rescue Exception => e' removed
Petr Chalupa
pchalupa at redhat.com
Mon Aug 27 10:46:23 UTC 2012
Hi,
I've just merged pull-request [1] removing "rescue Exception => e" from
katello source code.
Please do not use "rescue Exception => e" any more, use standard "rescue
=> e" (which is equivalent with "rescue StandardError => e") or better
specify the exception class "rescue ActiveRecord::RecordNotSaved => e".
See the pull request for why.
Thanks, Petr
[1] https://github.com/Katello/katello/pull/176
More information about the katello-devel
mailing list