zenpy
zenpy copied to clipboard
Can we have APIException inherit from ZenpyException?
It'd be nice if there was one singular exception which we could catch to handle all forms of exceptions from Zenpy. Every exception in lib.exception
inherits from ZenpyException
except for APIException
which inherits directly from Exception
. I think anyone catching ZenpyException
would probably want it to catch APIException
as well.
If you agree, I'd be happy to make a PR to implement it. I've been using the library a lot so I'd like to contribute back and help improve it. This seems like a good first PR!
Sometimes I read the backlog. Then sometimes I get sad because this has lied fallow. I think this is a great idea. If you want to get involved and do that I'd:
- Make the change
- See if the tests pass
- Submit the PR