def METHOD_NAME(self):
    if not MOBILE_APP_WORKAROUND:
        return False
    try:
        user_agent = request.user_agent.string
        logger.debug('Looking for user agent mobile app %s' % user_agent)
        is_mobile_app = any([
            (AGENT_MOBILE_IOS in user_agent),
            (AGENT_MOBILE_GENERIC in user_agent),
            (AGENT_MOBILE_ANDROID in user_agent)
        ])
    except RuntimeError:
        # RuntimeError happens when out of the context
        # it will be thrown when running celery tasks to update blog in S3
        # so we don't care about the mobile app thing.
        is_mobile_app = False
    return is_mobile_app