[katello-devel] 'rescue Exception => e' removed

Mike McCune mmccune at redhat.com
Mon Aug 27 15:15:48 UTC 2012


On 08/27/2012 03:46 AM, Petr Chalupa wrote:
> 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
>

excellent work




More information about the katello-devel mailing list