def client_exceptions(*exceptions):
 def outer(func):
  def inner(*args, **kwargs):
   return catch_client_exception(exceptions, func, *args, **kwargs)
  return inner
 return outer

def client_exceptions ( * exceptions ) : def outer ( func ) : def inner ( * args , ** kwargs ) : return catch_client_exception ( exceptions , func , * args , ** kwargs ) return inner return outer
decorator for manager methods that raise expected exceptions .