Queer European MD passionate about IT
Browse Source

Minor bug fixes

Davte 5 years ago
parent
commit
0a05c1e1c1
2 changed files with 4 additions and 4 deletions
  1. 3 3
      davtelepot/__init__.py
  2. 1 1
      davtelepot/helper.py

+ 3 - 3
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]

+ 1 - 1
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