diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index aec296a..4f0d80d 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -11,7 +11,7 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"] __license__ = "GNU General Public License v3.0" -__version__ = "2.5.20" +__version__ = "2.5.21" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/useful_tools.py b/davtelepot/useful_tools.py index 0ceedda..235507f 100644 --- a/davtelepot/useful_tools.py +++ b/davtelepot/useful_tools.py @@ -362,7 +362,7 @@ async def calculate_session(bot: Bot, record = bot.db['calculations'].find_one( id=record_id ) - old_expression = record['expression'] + old_expression = record['expression'] or '' if record is None: logging.error("Invalid record identifier!") return