diff --git a/japan_avg_hotel_price_finder/graphql_scraper.py b/japan_avg_hotel_price_finder/graphql_scraper.py index 6787d97..e2bef50 100644 --- a/japan_avg_hotel_price_finder/graphql_scraper.py +++ b/japan_avg_hotel_price_finder/graphql_scraper.py @@ -430,7 +430,7 @@ def check_info( try: currency_data = data['data']['searchQueries']['search']['results'][0]['blocks'][0]['finalPrice']['currency'] except IndexError: - currency_data = data['data']['searchQueries']['search']['results'][1]['blocks'][0]['finalPrice']['currency'] + currency_data = data['data']['searchQueries']['search']['results'][0]['blocks'][1]['finalPrice']['currency'] if entered_city != city_data: logger.error(f"Error City not match: {entered_city} != {city_data}")