From c4eb6a6afd7d3a1e0c13b6b021f3bd91e3b47fd7 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 7 Oct 1999 20:00:01 +0000 Subject: [PATCH] main(): Arg! I wasn't properly ignoring EINVAL; now only re-raise the exception if code <> errno.EINVAL. Jeremy this should fix your problem. --- Tools/audiopy/audiopy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tools/audiopy/audiopy b/Tools/audiopy/audiopy index ba03a695e24..f9193dd854a 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()