diff options
author | Barry Warsaw <barry@python.org> | 2000-03-29 21:05:53 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-03-29 21:05:53 (GMT) |
commit | bc9476ebe53516374ea1572432203c1a8dc0099e (patch) | |
tree | 7d7b178d8e87829bfff3384f9d4bf7a5cf2096db | |
parent | b2ba9d8963396932b760897f0014dea11f932378 (diff) | |
download | cpython-bc9476ebe53516374ea1572432203c1a8dc0099e.zip cpython-bc9476ebe53516374ea1572432203c1a8dc0099e.tar.gz cpython-bc9476ebe53516374ea1572432203c1a8dc0099e.tar.bz2 |
__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.
-rwxr-xr-x | Tools/audiopy/audiopy | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/audiopy/audiopy b/Tools/audiopy/audiopy index f9193dd..f5a1021 100755 --- a/Tools/audiopy/audiopy +++ b/Tools/audiopy/audiopy @@ -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: |