def get_restaurantname(city, area): try: restaurant_name1 = input("Enter the restaurant name:") restaurant_name = restaurant_name1.upper() list_of_restaurants = Validate.validate_hotel_name( city, area, restaurant_name) print(restaurant_name) FoodModule.Food.restaurant_name = restaurant_name FoodModule.Food.restaurant_city = city FoodModule.Food.restaurant_area = area except CustomException2.Invalidselectname as e: print(e) except Exception as e: print("Sorry. Some system error occurred") print(e)
def get_restaurantname(city, area): try: restaurant_name1 = input("Enter the restaurant name:") restaurant_name = restaurant_name1.upper() list_of_restaurants = Validate.validate_hotel_name( city, area, restaurant_name) print(restaurant_name) #Saving to Global Project Variables FoodModule.Food.restaurant_name = restaurant_name FoodModule.Food.restaurant_city = city FoodModule.Food.restaurant_area = area from functionality import ViewFunctions #Calling Module 3 print("Calling Module 3") ViewFunctions.view_category() except CustomException2.Invalidselectname as e: print(e) except Exception as e: print("Sorry. Some system error occurred") print(e)