Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbus exceptions error spotifyd #24

Open
johnfromoptus opened this issue Oct 11, 2020 · 1 comment
Open

dbus exceptions error spotifyd #24

johnfromoptus opened this issue Oct 11, 2020 · 1 comment

Comments

@johnfromoptus
Copy link

I have it set up to listen for spotifyd and have changed the script accordingly, however if i don't immediately open up spotify-tui and start playing something, I get an error that takes up the entire bar. It's just a dbus exception because it hasn't received a reply. If I start playing a song the error is replaced with the correct output, but is there some way that I can just disable the printing of this error entirely?

@felipejoribeiro
Copy link

Changed some python script lines:

except Exception as e:
    if isinstance(e, dbus.exceptions.DBusException):
        print('')
    else:
        #print(e)                                     #  <----   commented this
        print('')                                       #  <----   added this

And the problem seems solved.

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

No branches or pull requests

2 participants