wechaty / python-wechaty-puppet-service

Python Puppet Service Client for Wechaty
https://pypi.org/project/wechaty-puppet-service
Apache License 2.0
9 stars 15 forks source link

Refactoring exceptions #28

Closed fish-ball closed 4 years ago

fish-ball commented 4 years ago
  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.
wj-Mcat commented 4 years ago

It's greate to add wechaty exception support.