(op)
return error and error.get('code', 0) > 1
Return whether the operation has failed.
Return whether the operation has failed.
Return whether the operation has failed .
def is_failed(op):
  """Return whether the operation has failed."""
  error = get_error(op)
  return error and error.get('code', 0) > 1
def is_failed ( op ) : error = get_error ( op ) return error and error . get ( 'code' , 0 ) > 1