Refacter the throw sentence to use specific error class newly defined in python-wechaty-puppet, rather than raw Exception.
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.
python-wechaty-puppet
, rather than raw Exception.puppet_stub
from field to property which automatically raises error when private field_puppet_stub
is set, so we don't have to check whetherpuppet_stub
is None or throws an error each time we use in a single method call.