Fix upload_image for blobs

This commit is contained in:
EnigmaCurry 2021-10-17 23:16:16 +00:00
parent cc65d630a0
commit d3c337e50c
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -137,7 +137,7 @@ class Bot:
cache_key = url_or_bytes cache_key = url_or_bytes
if blob: ## url is bytes, cannot be used a key for cache 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: if no_cache:
cache_key = None cache_key = None