def retry_503(f):
 @wraps(f)
 def wrapper(*args, **kwargs):
  try:
   return f(*args, **kwargs)
  except HttpError as e:
   log.error('HTTP Error calling Google Analytics: %s', e)
   if (e.resp.status == 503):
    return f(*args, **kwargs)
 return wrapper

def retry_503 ( f ) : @ wraps ( f ) def wrapper ( * args , ** kwargs ) : try : return f ( * args , ** kwargs ) except HttpError as e : log . error ( 'HTTP Error calling Google Analytics: %s' , e ) if ( e . resp . status == 503 ) : return f ( * args , ** kwargs ) return wrapper
call f .