def proto_error(err):
if isinstance(err, ProtoError):<EOL><INDENT>return err<EOL><DEDENT>else:<EOL><INDENT>return ProtoError(err)<EOL><DEDENT>
If err is a ProtoError, I just return it.  Otherwise I create a ProtoError
out of err and return it.