mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
Some objects don't have a module
This commit is contained in:
parent
87b096c7f9
commit
92183a5bbc
1 changed files with 6 additions and 3 deletions
|
@ -295,9 +295,12 @@ import inspect
|
||||||
|
|
||||||
|
|
||||||
def autodoc_skip_member(app, what, name, obj, skip, options):
|
def autodoc_skip_member(app, what, name, obj, skip, options):
|
||||||
if inspect.getmodule(obj).__name__.startswith('telegram') and inspect.isfunction(obj):
|
try:
|
||||||
if name.lower() != name:
|
if inspect.getmodule(obj).__name__.startswith('telegram') and inspect.isfunction(obj):
|
||||||
return True
|
if name.lower() != name:
|
||||||
|
return True
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
# Return None so napoleon can handle it
|
# Return None so napoleon can handle it
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue