See if you can avoid need to use catch-all <code>exception</code>.  I know pylint will complain about it.