

def error(code, message, template):
    'A generic error handler'
    if json_requested():
        return json_error(code, message)
    else:
        return (render_template(template, message=message), template)

dataset/ETHPy150Open rehandalal/buchner/buchner/project-template/PROJECTMODULE/errors.py error/VarMisuse@47/61 `code`->`template`