diff options
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/audiopy/audiopy | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tools/audiopy/audiopy b/Tools/audiopy/audiopy index ba03a69..f9193dd 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() |