def METHOD_NAME(var):
    """Define "msg" with a chained assignment."""
    try:
        return 1 / var.some_other_func()
    except AttributeError:
        msg2 = msg = "Division by 0"
        print(msg2)
    except ZeroDivisionError:
        msg = "Division by 0"
    print(msg)