lazy load tomllib/tomli

raise SteamlabsSIOConnectionError on connection error

Path.home() / ".config" / "streamlabsio" / "config.toml"
added to config filepaths

raw kwarg added.

module level logger added.
This commit is contained in:
2023-06-28 02:45:04 +01:00
parent 37ca764806
commit 5dc69cc655
2 changed files with 45 additions and 15 deletions

2
streamlabsio/error.py Normal file
View File

@@ -0,0 +1,2 @@
class SteamlabsSIOConnectionError(Exception):
"""Exception raised when connection errors occur"""