Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4eb6a6

Browse files
committed
main(): Arg! I wasn't properly ignoring EINVAL; now only re-raise the
exception if code <> errno.EINVAL. Jeremy this should fix your problem.
1 parent d8957d6 commit c4eb6a6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Tools/audiopy/audiopy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,8 @@ Version: %s''' % __version__
494494
try:
495495
device.setinfo(info)
496496
except sunaudiodev.error, (code, msg):
497-
if code == errno.EINVAL:
498-
pass
499-
raise
497+
if code <> errno.EINVAL:
498+
raise
500499
device.close()
501500

502501

0 commit comments

Comments
 (0)