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

Improve exception handling #96

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

mreid-tt
Copy link
Contributor

In diagnosing the publishing process, errors like FileNotFoundError (and likely other IOError types) have no 'message' attribute in the exception object. This results in another exception in the handling of the primary exception which is not good for logging. This PR attempts to improve the exception handling by using the safer str(e) instead.

Fixes: #50

@Diaoul Diaoul merged commit 5540e33 into SynoCommunity:main Apr 26, 2023
@mreid-tt mreid-tt deleted the api-error-handling-patch branch April 26, 2023 14:40
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.

Improve error handling for FileExistsError
2 participants