From 0dab7a74e1b038662756778b6a0c6b9b41b26ffa Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 18 Feb 2022 17:24:09 +0100 Subject: [PATCH] KeyError: 'url' --- LogBot/logbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 1d7102a..3ced954 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -232,7 +232,7 @@ class Logbot(Bot): f"To be deleted: { self.db[message.room]['messages'][key] }" ) if 'media' in self.db[message.room]['messages'][key]: - reply = f"Deleted: { self.db[message.room]['messages'][key]['media']['url'] }" + reply = f"Deleted: { self.db[message.room]['messages'][key]['media']['path'] }" else: reply = f"Deleted: { self.db[message.room]['messages'][key]['post'] }" del self.db[message.room]["messages"][key]