From 144bb824125507221166b105d789593066b00210 Mon Sep 17 00:00:00 2001 From: dmontagu <35119617+dmontagu@users.noreply.github.com> Date: Mon, 14 Oct 2019 01:08:21 -0700 Subject: [PATCH] Update datastructures.py Fix assert error message in `URL.__init__` --- starlette/datastructures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starlette/datastructures.py b/starlette/datastructures.py index 087a27f5..7be1f23a 100644 --- a/starlette/datastructures.py +++ b/starlette/datastructures.py @@ -44,7 +44,7 @@ class URL: if query_string: url += "?" + query_string.decode() elif components: - assert not url, 'Cannot set both "scope" and "**components".' + assert not url, 'Cannot set both "url" and "**components".' url = URL("").replace(**components).components.geturl() self._url = url -- 2.47.2