mirror of
https://github.com/onyx-and-iris/simple-recorder.git
synced 2026-04-09 02:43:34 +00:00
handle TimeoutError
patch bump
This commit is contained in:
@@ -32,5 +32,5 @@ class Directory(Command):
|
||||
f"Current recording directory: {highlight(resp.record_directory)}"
|
||||
)
|
||||
return resp.record_directory
|
||||
except Exception as e:
|
||||
raise SimpleRecorderError(f"Failed to get recording directory: {e}")
|
||||
except TimeoutError:
|
||||
raise SimpleRecorderError("Failed to connect to OBS. Is it running?")
|
||||
|
||||
Reference in New Issue
Block a user