You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transact method should raise appropriate exceptions when failures occur. The current implementation catches everything, logs a warning and returns a generic error string.
I agree, the implementation could be better.
I am working on this HA bug: home-assistant/core#106374 which might be related. So I could look into this as well.
The transact method should raise appropriate exceptions when failures occur. The current implementation catches everything, logs a warning and returns a generic error string.
python-snapcast/snapcast/control/server.py
Lines 157 to 165 in 9c8f97c
This makes detecting errors awkward as the type of the return is used to determine if a transaction was successful.
e.g.
python-snapcast/snapcast/control/server.py
Lines 306 to 308 in 9c8f97c
I think it would be better for this method to raise the exception, possibly a custom one.
Just an idea.
The text was updated successfully, but these errors were encountered: