def make_middleware(app, global_conf=None, warning_level=None):
 if warning_level:
  warning_level = int(warning_level)
 return HTTPExceptionHandler(app, warning_level=warning_level)

def make_middleware ( app , global_conf = None , warning_level = None ) : if warning_level : warning_level = int ( warning_level ) return HTTPExceptionHandler ( app , warning_level = warning_level )
httpexceptions middleware; this catches any paste .