simplyprint: silence stream errors

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-08-08 17:02:20 -04:00
parent 6e253b0d42
commit 39f26dc31a
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 2 additions and 0 deletions

View File

@ -1335,6 +1335,8 @@ class WebcamStream:
except asyncio.CancelledError: except asyncio.CancelledError:
raise raise
except Exception as e: except Exception as e:
if not self.server.is_debug_enabled():
pass
if type(last_err) != type(e) or last_err.args != e.args: if type(last_err) != type(e) or last_err.args != e.args:
last_err = e last_err = e
cname = self.__class__.__name__ cname = self.__class__.__name__