def view_init_location(self, boats=()): while not self: try: inputs = TTY.location_init(xyo=(boats is not ())) self.set_location(inputs[0], orientation=inputs[1], constraints=boats) except: self.__reset_location() TTY.location_error()