]> granicus.if.org Git - python/commitdiff
main(): Arg! I wasn't properly ignoring EINVAL; now only re-raise the
authorBarry Warsaw <barry@python.org>
Thu, 7 Oct 1999 20:00:01 +0000 (20:00 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 7 Oct 1999 20:00:01 +0000 (20:00 +0000)
exception if code <> errno.EINVAL.  Jeremy this should fix your
problem.

Tools/audiopy/audiopy

index ba03a695e24bb36bf46087393b62a08cba1bcd4a..f9193dd854aad63f39f5dfc9cdbdbb4ea9c3d7cd 100755 (executable)
@@ -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()