Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Raise exceptions instead of passing error messages #173

Open
aaroncohen73 opened this issue Oct 25, 2016 · 0 comments
Open

Raise exceptions instead of passing error messages #173

aaroncohen73 opened this issue Oct 25, 2016 · 0 comments

Comments

@aaroncohen73
Copy link
Contributor

In my opinion, exceptions would have two main advantages over error messages:

  1. Exceptions make themselves immediately obvious instead of hiding and causing later trouble
  2. try: ... except Exception as e: ... is cleaner and more Pythonic than if 'error' in obj or 'pymesync error' in obj: ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant