mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-04 17:39:23 +08:00
Add code (#153)
This commit is contained in:
@@ -167,6 +167,10 @@ class VideoCallback(VideoStreamTrack):
|
||||
logger.debug("exception %s", e)
|
||||
exec = traceback.format_exc()
|
||||
logger.debug("traceback %s", exec)
|
||||
if isinstance(e, WebRTCError):
|
||||
raise e
|
||||
else:
|
||||
raise WebRTCError(str(e)) from e
|
||||
|
||||
|
||||
class StreamHandlerBase(ABC):
|
||||
|
||||
Reference in New Issue
Block a user