def METHOD_NAME(var):
    """'msg' is not defined in one handler."""
    try:
        return 1 / var.some_other_func()
    except AttributeError:
        msg: str
    except ZeroDivisionError:
        msg = "Division by 0"
    print(msg)  # [used-before-assignment]