summaryrefslogtreecommitdiff
path: root/rdflib/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'rdflib/parser.py')
-rw-r--r--rdflib/parser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rdflib/parser.py b/rdflib/parser.py
index 89318aff..6f23dd34 100644
--- a/rdflib/parser.py
+++ b/rdflib/parser.py
@@ -276,7 +276,8 @@ class URLInputSource(InputSource):
# This custom error handling should be removed once all
# supported versions of python support 308.
if ex.code == 308:
- req.full_url = ex.headers.get("Location")
+ # type error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "str")
+ req.full_url = ex.headers.get("Location") # type: ignore[assignment]
return _urlopen(req)
else:
raise