__pushtodev(): Ignore transient sunaudiodev.errors when setting the

device info.  I don't know why these occur, but they seem to be
shortlived and harmless.
This commit is contained in:
Barry Warsaw 2000-03-29 21:05:53 +00:00
parent b2ba9d8963
commit bc9476ebe5
1 changed files with 5 additions and 1 deletions

View File

@ -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: