Merge pull request #178 from EnigmaCurry/fix_blob_images

Fix upload_image for blobs
This commit is contained in:
Ville Ranki 2021-10-18 10:17:50 +03:00 committed by GitHub
commit 832ae1615d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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