← Back to team overview

openerp-dev-web team mailing list archive

Re: lp:~openerp-dev/openobject-client-web/trunk-bug-754645-jra into lp:openobject-client-web

 

On Wednesday 27 April 2011, you wrote:
> Jiten (OpenERP) has proposed merging
> lp:~openerp-dev/openobject-client-web/trunk-bug-754645-jra into
> lp:openobject-client-web.

except:
.    pass 

This is some not-so-good syntax. Please, keep in mind as a general practice, 
to only narrow your exception handling to the ones that you really expect to 
find there. Other exceptions have to propagate.
For one, you'd only mean to catch exception, like

except Exception:
    pass

or even, only catch the IndexError or KeyError of 'defval[0]':
 except (KeyError, IndexError):
     pass




-- 
Say NO to spam and viruses. Stop using Microsoft Windows!

https://code.launchpad.net/~openerp-dev/openobject-client-web/trunk-bug-754645-jra/+merge/59205
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-client-web/trunk-bug-754645-jra.


References