Skip to content

Fix OBSSDKRequestError import for newer obsws-python - #12

Open
Broyojo wants to merge 1 commit into
mainfrom
fix/obsws-python-error-import
Open

Fix OBSSDKRequestError import for newer obsws-python#12
Broyojo wants to merge 1 commit into
mainfrom
fix/obsws-python-error-import

Conversation

@Broyojo

@Broyojo Broyojo commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

What

Fixes a crash when running against recent versions of obsws-python. The exception handler added in #9 references obs.error.OBSSDKRequestError, but newer releases of obsws-python no longer import the error module as a package attribute — so when the Mic/Aux mute request fails (e.g. no mic input exists), the except clause itself raises AttributeError instead of catching the error.

The fix imports OBSSDKRequestError directly from obsws_python.error, which works across old and new library versions.

Credit

This fix was authored by @ruiqurm and cherry-picked (authorship preserved) from the obs_latest_fix branch of the SAAgent/DuckTrack fork, which was never submitted upstream. Thank you!

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants