diff --git a/zerver/lib/camo.py b/zerver/lib/camo.py index 31b8af9ad4..2a879ae9bc 100644 --- a/zerver/lib/camo.py +++ b/zerver/lib/camo.py @@ -15,5 +15,5 @@ def get_camo_url(url): encoded_url = url.encode("utf-8") encoded_camo_key = settings.CAMO_KEY.encode("utf-8") digest = hmac.new(encoded_camo_key, encoded_url, hashlib.sha1).hexdigest() - hex_encoded_url = codecs.encode(encoded_url, "hex") # type: ignore # https://github.com/python/typeshed/issues/300 + hex_encoded_url = codecs.encode(encoded_url, "hex") # type: ignore # https://github.com/python/typeshed/issues/300 return "%s%s/%s" % (settings.CAMO_URI, digest, hex_encoded_url.decode("utf-8"))