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