No need for the `else` as `if modulus is None` we've raised an exception ... otherwise carry on.