﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31548	URLValidator crashes on non-strings.	Vasiliy Bondarenko	Yash Saini	"URLValidator is expected to raise ValidationError for empty string, instead it fails on `.split` statement with general error:
`AttributeError: 'NoneType' object has no attribute 'split'`
or 
`AttributeError: 'int' object has no attribute 'split'`
etc.


in django/core/validators.py

{{{


    def __call__(self, value):
        # Check first if the scheme is valid
        scheme = value.split('://')[0].lower()
        if scheme not in self.schemes:
            raise ValidationError(self.message, code=self.code)

}}}
"	Bug	closed	Core (Other)	3.0	Normal	fixed			Ready for checkin	1	0	0	0	0	0
