Comment 5 for bug 1439473

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

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.