diff options
author | Barry Warsaw <barry@python.org> | 1999-10-07 20:00:01 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1999-10-07 20:00:01 (GMT) |
commit | c4eb6a6afd7d3a1e0c13b6b021f3bd91e3b47fd7 (patch) | |
tree | c39c9a44e0fa23f9277e5985410c845e9fa2331a | |
parent | d8957d6802551c6510974667e102027ed07a0fa5 (diff) | |
download | cpython-c4eb6a6afd7d3a1e0c13b6b021f3bd91e3b47fd7.zip cpython-c4eb6a6afd7d3a1e0c13b6b021f3bd91e3b47fd7.tar.gz cpython-c4eb6a6afd7d3a1e0c13b6b021f3bd91e3b47fd7.tar.bz2 |
main(): Arg! I wasn't properly ignoring EINVAL; now only re-raise the
exception if code <> errno.EINVAL. Jeremy this should fix your
problem.
-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() |