def error_handler(view_fn):
  def decorator(*args, **kwargs):
    try:
      if is_navigator_enabled():
        return view_fn(*args, **kwargs)
      else:
        raise MetadataApiException('Navigator API is not configured.')
    except Http404, e:
      raise e
    except Exception, e:
      status = 500
      message = str(e)
      LOG.exception(message)

      if message in 'Could not find':
        status = 200

      response = {
        'status': -1,
        'message': force_unicode(message)
      }
    return JsonResponse(response, status=status)
  return decorator
dataset/ETHPy150Open cloudera/hue/desktop/libs/metadata/src/metadata/navigator_api.py/error_handler/swapped operands of `in`