#NEWLINE# def clean( self , value ) : #NEWLINE# #INDENT# value = super ( ITVatNumberField , self ) . clean ( value ) #NEWLINE# if ( value in EMPTY_VALUES ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return vat_number_validation ( value ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise ValidationError ( self . error_messages [ 'invalid' ] )