]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Update datastructures.py 673/head
authordmontagu <35119617+dmontagu@users.noreply.github.com>
Mon, 14 Oct 2019 08:08:21 +0000 (01:08 -0700)
committerGitHub <noreply@github.com>
Mon, 14 Oct 2019 08:08:21 +0000 (01:08 -0700)
Fix assert error message in `URL.__init__`

starlette/datastructures.py

index 087a27f530a341886815c4a06c7e706c507d3042..7be1f23a20c28ac2ad19a63605e628f5aadcb852 100644 (file)
@@ -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