diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index 29ff7a6..b5300a9 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -14,12 +14,12 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"] __license__ = "GNU General Public License v3.0" -__version__ = "2.3.27" +__version__ = "2.3.28" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" # Legacy module; please use `from davtelepot.bot import Bot` from now on from .custombot import Bot -from . import administration_tools, bot, helper, utilities +from . import administration_tools, authorization, bot, helper, utilities -__all__ = [administration_tools, Bot, bot, helper, utilities] +__all__ = [administration_tools, authorization, Bot, bot, helper, utilities] diff --git a/davtelepot/helper.py b/davtelepot/helper.py index c79dce7..58d6d60 100644 --- a/davtelepot/helper.py +++ b/davtelepot/helper.py @@ -36,7 +36,7 @@ def get_command_description(bot, update, user_record): bot.commands.items(), key=lambda x:x[0] ) - if details['description'] + if 'description' in details and details['description'] and user_role.code <= bot.Role.get_user_role( user_role_id=details['authorization_level'] ).code