diff --git a/ducktrack/obs_client.py b/ducktrack/obs_client.py index 7eee738..fd34bb2 100644 --- a/ducktrack/obs_client.py +++ b/ducktrack/obs_client.py @@ -3,6 +3,7 @@ import time from platform import system +from obsws_python.error import OBSSDKRequestError import obsws_python as obs import psutil @@ -149,9 +150,9 @@ def on_record_state_changed(data): try: self.req_client.set_input_mute("Mic/Aux", muted=True) - except obs.error.OBSSDKRequestError : - # In case there is no Mic/Aux input, this will throw an error + except OBSSDKRequestError: pass + # In case there is no Mic/Aux input, this will throw an error def start_recording(self): self.req_client.start_record() @@ -197,4 +198,4 @@ def _scale_resolution(base_width: int, base_height: int, target_width: int, tar scaled_height = int((target_area / aspect_ratio) ** 0.5) scaled_width = int(aspect_ratio * scaled_height) - return scaled_width, scaled_height \ No newline at end of file + return scaled_width, scaled_height