Alternatively, you could have used args in an assert (args = []) here. It changes the behaviour, but in the right direction.