def is_conflict(exception):
 exception_string = str(exception)
 return any(((s in exception_string) for s in CONFLICT_INDICATORS))

def is_conflict ( exception ) : exception_string = str ( exception ) return any ( ( ( s in exception_string ) for s in CONFLICT_INDICATORS ) )
returns true if and only if the specified exception represents a conflict in the database .