Add exception case for bad url variables