From: Barry Warsaw Date: Thu, 7 Oct 1999 20:00:01 +0000 (+0000) Subject: main(): Arg! I wasn't properly ignoring EINVAL; now only re-raise the X-Git-Tag: v1.6a1~830 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4eb6a6afd7d3a1e0c13b6b021f3bd91e3b47fd7;p=thirdparty%2FPython%2Fcpython.git main(): Arg! I wasn't properly ignoring EINVAL; now only re-raise the exception if code <> errno.EINVAL. Jeremy this should fix your problem. --- diff --git a/Tools/audiopy/audiopy b/Tools/audiopy/audiopy index ba03a695e24b..f9193dd854aa 100755 --- a/Tools/audiopy/audiopy +++ b/Tools/audiopy/audiopy @@ -494,9 +494,8 @@ Version: %s''' % __version__ try: device.setinfo(info) except sunaudiodev.error, (code, msg): - if code == errno.EINVAL: - pass - raise + if code <> errno.EINVAL: + raise device.close()