Discussion:
[BitPim-devel] [bitpim-cvs-checkins] SF.net SVN: bitpim: [3702] trunk/bitpim/src/phones/com_sanyomedia.py
Roger Binns
2006-11-29 03:29:53 UTC
Permalink
+ res=self.sendpbcommand(req, self.protocolclass.sanyonumfilesresponse)
+ self.log("Skipping directory "+`idir`)
It is generally considered good Python practise to catch the explicit
exceptions you care about (in this case BrewNoSuchDirectoryException).
Otherwise the code above will mask out other exceptions (permission
denied, timeouts etc).

Roger

Loading...