#NEWLINE# def __init__( self , what , expected , detail = None ) : #NEWLINE# #INDENT# message = "'{0}' is not {1}" . format ( what , expected ) #NEWLINE# if detail : #NEWLINE# #INDENT# message = '{0}: {1}' . format ( message , detail ) #NEWLINE# #UNINDENT# super ( InvalidQueryArgumentTypeError , self ) . __init__ ( message )