python snippet du jour
John Arbash Meinel
john at arbash-meinel.com
Wed Dec 16 14:48:33 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Pool wrote:
> 2009/12/16 Ben Finney <ben+bazaar at benfinney.id.au>:
>> Whoops. That's not how to catch multiple exception types
>> <URL:http://docs.python.org/tutorial/errors.html#handling-exceptions>,
>> but it's a common mistake, and for that reason it iss invalid in Python
>> 3 <URL:http://docs.python.org/3.1/reference/compound_stmts.html#except>.
>
> spoiler. :]
>
We actually had that problem in bzr-svn, which ended up causing a
base-level exception class to get broken. I forget the specifics, but I
think it was if you didn't have sqlite installed it would overwrite one
of the transport errors, and all sorts of things went crazy.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkso80EACgkQJdeBCYSNAAPawQCg2BjYG8dx/rY6HH/2w+DizkvQ
p0QAn29iJqs7jgdDoWmiKuGZm5Q9pfhE
=+z2S
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list