Confirmed still a problem in cosmic:
ubuntu@cosmic-django:~$ python3
Python 3.6.6+ (default, Sep 1 2018, 01:05:25)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from django.core.validators import URLValidator
>>> validator = URLValidator()
>>> validator("http://foo/bar")
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/core/validators.py", line 124, in __call__
super(URLValidator, self).__call__(value)
File "/usr/lib/python3/dist-packages/django/core/validators.py", line 62, in __call__
raise ValidationError(self.message, code=self.code)
django.core.exceptions.ValidationError: <exception str() failed>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/django/core/validators.py", line 137, in __call__
super(URLValidator, self).__call__(url)
File "/usr/lib/python3/dist-packages/django/core/validators.py", line 62, in __call__
raise ValidationError(self.message, code=self.code)
django.core.exceptions.ValidationError: <exception str() failed>
>>> validator("http://foo.com/bar")
>>>
python3-django 1:1.11.15-1ubuntu1
Upstream is at 2.1, but we are following debian and 2.1 is only in debian experimental.
Confirmed still a problem in cosmic: cosmic- django: ~$ python3 core.validators import URLValidator foo/bar") python3/ dist-packages/ django/ core/validators .py", line 124, in __call__ URLValidator, self)._ _call__ (value) python3/ dist-packages/ django/ core/validators .py", line 62, in __call__ (self.message, code=self.code) core.exceptions .ValidationErro r: <exception str() failed>
ubuntu@
Python 3.6.6+ (default, Sep 1 2018, 01:05:25)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from django.
>>> validator = URLValidator()
>>> validator("http://
Traceback (most recent call last):
File "/usr/lib/
super(
File "/usr/lib/
raise ValidationError
django.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): python3/ dist-packages/ django/ core/validators .py", line 137, in __call__ URLValidator, self).__call__(url) python3/ dist-packages/ django/ core/validators .py", line 62, in __call__ (self.message, code=self.code) core.exceptions .ValidationErro r: <exception str() failed> foo.com/ bar")
File "<stdin>", line 1, in <module>
File "/usr/lib/
super(
File "/usr/lib/
raise ValidationError
django.
>>> validator("http://
>>>
python3-django 1:1.11.15-1ubuntu1
Upstream is at 2.1, but we are following debian and 2.1 is only in debian experimental.