From d3c337e50cafb0175d4389220822aed97885c918 Mon Sep 17 00:00:00 2001 From: EnigmaCurry Date: Sun, 17 Oct 2021 23:16:16 +0000 Subject: [PATCH] Fix upload_image for blobs --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index a565860..47d6cf4 100755 --- a/bot.py +++ b/bot.py @@ -137,7 +137,7 @@ class Bot: cache_key = url_or_bytes if blob: ## url is bytes, cannot be used a key for cache - cache_key = hashlib.md5(url).hexdigest() + cache_key = hashlib.md5(url_or_bytes).hexdigest() if no_cache: cache_key = None