Skip to content

Refactoring exceptions #28

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

Merged
merged 5 commits into from
Jul 20, 2020
Merged

Conversation

fish-ball
Copy link
Contributor

  1. Refacter the throw sentence to use specific error class newly defined in python-wechaty-puppet, rather than raw Exception.
  2. Refacter the puppet_stub from field to property which automatically raises error when private field _puppet_stub is set, so we don't have to check whether puppet_stub is None or throws an error each time we use in a single method call.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@fish-ball fish-ball requested a review from a team as a code owner July 19, 2020 12:29

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Collaborator

@wj-Mcat wj-Mcat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wj-Mcat
Copy link
Collaborator

wj-Mcat commented Jul 20, 2020

It's greate to add wechaty exception support.

@fish-ball fish-ball merged commit e3297ae into wechaty:master Jul 20, 2020
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.

None yet

2 participants