mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
main(): Arg! I wasn't properly ignoring EINVAL; now only re-raise the
exception if code <> errno.EINVAL. Jeremy this should fix your problem.
This commit is contained in:
parent
d8957d6802
commit
c4eb6a6afd
1 changed files with 2 additions and 3 deletions
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue