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

Use custom exceptions #59

Merged
merged 2 commits into from
Jun 1, 2021
Merged

Use custom exceptions #59

merged 2 commits into from
Jun 1, 2021

Conversation

nolze
Copy link
Owner

@nolze nolze commented May 29, 2021

This PR resolves #50 by introducing following custom exceptions in msoffcrypto/exceptions.py:

  • FileFormatError,
  • ParseError (uninteresting),
  • DecryptionError,
  • InvalidKeyError (inheriting DecryptionError).

/cc @cal97g and @decalage2, please let me know if you have any suggestions or comments.

@nolze nolze merged commit a57dc7d into master Jun 1, 2021
@nolze nolze deleted the feature/exceptions branch June 1, 2021 14:25
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.

Improvement: Better Exception Type
1 participant