Skip to content

Commit 30fc372

Browse files
committed
Allow HttpRedirectRequest to operate on a lazy value
1 parent dc07f42 commit 30fc372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fluent_contents/extensions/pluginbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,5 +596,5 @@ def __init__(self, url, status=302):
596596
"Please add 'fluent_contents.middleware.HttpRedirectRequestMiddleware' "
597597
"to MIDDLEWARE_CLASSES to handle redirects by plugins.".format(url)
598598
)
599-
self.url = url
599+
self.url = str(url) if url else url
600600
self.status = status

0 commit comments

Comments
 (0)