[merge] catch exceptions while opening /dev/urandom
John Arbash Meinel
john at arbash-meinel.com
Tue Oct 10 07:29:27 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
This patch is just meant to close this bug:
It works on the existing patch, only it prefers to catch specifically
IOError and OSError, rather than catching any error.
Also, it might be better if we checked e.errno to be in a specific set
(such as ENOENT), but since the bug report didn't indicate what the
actual error was, I'm just submitting it as is.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the bazaar