Merge pull request #178 from EnigmaCurry/fix_blob_images
Fix upload_image for blobs
This commit is contained in:
commit
832ae1615d
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