Changing add_subnet() to raise an exception rather than return none