Fix upload_image for blobs
This commit is contained in:
parent
cc65d630a0
commit
d3c337e50c
2
bot.py
2
bot.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue