TypeError bug fixed
This commit is contained in:
parent
2131c6acf9
commit
995bfee084
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user