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

Fix code smells #29

Open
czwartaoslpoj opened this issue Aug 5, 2022 · 0 comments
Open

Fix code smells #29

czwartaoslpoj opened this issue Aug 5, 2022 · 0 comments
Assignees
Labels
Examples Provide examples about certain implementation

Comments

@czwartaoslpoj
Copy link
Collaborator

Fix code smells caught by SonarLint regarding:

  1. In RSA_encrypt, RSA_decrypt and constructor Client methods, instead of raising general Exception, raise custom ClientError.
  2. Create constants.py file, where all the constants will be stored. Since "application/json" constant is needed in client.py as well as in connection.py it's better to store it in this additional file.
  3. Remove unneeded 'pass' statement in set_ppk() function (client.py).
@czwartaoslpoj czwartaoslpoj added the Examples Provide examples about certain implementation label Aug 5, 2022
@czwartaoslpoj czwartaoslpoj self-assigned this Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Examples Provide examples about certain implementation
Projects
None yet
Development

No branches or pull requests

1 participant