API: don't fail on missing 'doc' property
This commit is contained in:
parent
d664d99f89
commit
6f68729b6f
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ class API(object):
|
||||||
else:
|
else:
|
||||||
kw = None
|
kw = None
|
||||||
return self._request(action, kw)
|
return self._request(action, kw)
|
||||||
method.__doc__ = self._properties[action]['doc']
|
if 'doc' in self._properties[action]:
|
||||||
|
method.__doc__ = self._properties[action]['doc']
|
||||||
method.func_name = str(action)
|
method.func_name = str(action)
|
||||||
self._add_method(method, action)
|
self._add_method(method, action)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue