mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-22 12:50:53 +00:00
update readme Errors section
This commit is contained in:
parent
9e3c1d3f37
commit
d84d30b752
3
.gitignore
vendored
3
.gitignore
vendored
@ -48,3 +48,6 @@ venv.bak/
|
|||||||
# Test/config
|
# Test/config
|
||||||
quick.py
|
quick.py
|
||||||
config.toml
|
config.toml
|
||||||
|
obsws.log
|
||||||
|
|
||||||
|
.vscode/
|
@ -27,6 +27,7 @@ By default the clients connect with parameters:
|
|||||||
- `host`: "localhost"
|
- `host`: "localhost"
|
||||||
- `port`: 4455
|
- `port`: 4455
|
||||||
- `password`: ""
|
- `password`: ""
|
||||||
|
- `timeout`: None
|
||||||
|
|
||||||
You may override these parameters by storing them in a toml config file or passing them as keyword arguments.
|
You may override these parameters by storing them in a toml config file or passing them as keyword arguments.
|
||||||
|
|
||||||
@ -41,7 +42,6 @@ A valid `config.toml` might look like this:
|
|||||||
host = "localhost"
|
host = "localhost"
|
||||||
port = 4455
|
port = 4455
|
||||||
password = "mystrongpass"
|
password = "mystrongpass"
|
||||||
timeout = 3
|
|
||||||
```
|
```
|
||||||
|
|
||||||
It should be placed in your user home directory.
|
It should be placed in your user home directory.
|
||||||
@ -132,6 +132,8 @@ If a request fails an `OBSSDKError` will be raised with a status code.
|
|||||||
|
|
||||||
For a full list of status codes refer to [Codes](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#requeststatus)
|
For a full list of status codes refer to [Codes](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#requeststatus)
|
||||||
|
|
||||||
|
If a timeout occurs during sending/receiving a request or receiving an event an `OBSSDKTimeoutError` will be raised.
|
||||||
|
|
||||||
### Logging
|
### Logging
|
||||||
|
|
||||||
If you want to see the raw messages simply set log level to DEBUG
|
If you want to see the raw messages simply set log level to DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user