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

Raise exception when user tries to send a command that requires full socket access but does not have this permission #35

Open
italorossi opened this issue Sep 4, 2018 · 0 comments
Assignees

Comments

@italorossi
Copy link
Member

italorossi commented Sep 4, 2018

After connect we'll know if the socket is full or not, just capture that save on a property and check before sending the command.

A good idea is to decorate all the methods that requires it:

@require_socket_full
def uuid_break(self, uuid):
    pass
@italorossi italorossi self-assigned this Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant