mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 14:35:00 +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):
|
||||
if inspect.getmodule(obj).__name__.startswith('telegram') and inspect.isfunction(obj):
|
||||
if name.lower() != name:
|
||||
return True
|
||||
try:
|
||||
if inspect.getmodule(obj).__name__.startswith('telegram') and inspect.isfunction(obj):
|
||||
if name.lower() != name:
|
||||
return True
|
||||
except AttributeError:
|
||||
pass
|
||||
# Return None so napoleon can handle it
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue