]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
__pushtodev(): Ignore transient sunaudiodev.errors when setting the
authorBarry Warsaw <barry@python.org>
Wed, 29 Mar 2000 21:05:53 +0000 (21:05 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 29 Mar 2000 21:05:53 +0000 (21:05 +0000)
device info.  I don't know why these occur, but they seem to be
shortlived and harmless.

Tools/audiopy/audiopy

index f9193dd854aad63f39f5dfc9cdbdbb4ea9c3d7cd..f5a10218d2b16d78488c1ba20c8076de79a7005e 100755 (executable)
@@ -308,7 +308,11 @@ Email:   bwarsaw@python.org''' % __version__)
                       self.__linevar.get()
         info.i_port = self.__inputvar.get()
         info.o_gain = self.__scalevar.get()
-        self.__devctl.setinfo(info)
+        try:
+            self.__devctl.setinfo(info)
+        except sunaudiodev.error, msg:
+            # TBD: what to do?  it's probably temporary.
+            pass
 
     def __getset(self, var, onvalue):
         if var.get() == onvalue: