mirror of
https://github.com/onyx-and-iris/simple-recorder.git
synced 2025-07-27 06:11:59 +00:00
handle TimeoutError
patch bump
This commit is contained in:
parent
d8d7fce5cc
commit
0fe22debb6
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "simple-recorder"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
description = "A simple OBS recorder"
|
||||
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
|
||||
dependencies = [
|
||||
|
@ -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?")
|
||||
|
Loading…
x
Reference in New Issue
Block a user