diff --git a/utils/story_functions.py b/utils/story_functions.py index 7def121d3..8f9613fa2 100644 --- a/utils/story_functions.py +++ b/utils/story_functions.py @@ -396,6 +396,7 @@ def create_imageproxy_signed_url(base_url, hmac_key, url, options=None): str: A full url that can be used to serve the proxied image """ if not options: options = [] + if isinstance(options, int): options = [str(options)] if not isinstance(options, list): options = [options] base_url = base_url.rstrip('/') signature = base64.urlsafe_b64encode(hmac.new(hmac_key, msg=url, digestmod=hashlib.sha256).digest())