web_programming/helper.py
def disable_exception_traceback():
    """
    All traceback information is suppressed and only the exception type and value are printed
    """
    default_value = getattr(
        sys, "tracebacklimit", 1000
    )  # `1000` is a Python's default value
    sys.tracebacklimit = 0
    yield
    sys.tracebacklimit = default_value

    All traceback information is suppressed and only the exception type and value are printed
    
All traceback information is suppressed and only the exception type and value are printed
All traceback information is suppressed and only the exception type and value are printed
def disable_exception_traceback():
    default_value = getattr(
        sys, "tracebacklimit", 1000
    )  
    sys.tracebacklimit = 0
    yield
    sys.tracebacklimit = default_value
def disable_exception_traceback ( ) : default_value = getattr ( sys , "tracebacklimit" , 1000 ) sys . tracebacklimit = 0 yield sys . tracebacklimit = default_value
All traceback information is suppressed and only the exception type and value are printed
All traceback information is suppressed and only the exception type and value are printed
"""
    All traceback information is suppressed and only the exception type and value are printed
    """ # `1000` is a Python's default value