Traceback (most recent call last): File "/home/ubuntu/PriceScraper/src/ScraperAlbert.py", line 23, in scrape for k in json["data"]["categoryProductSearch"]["products"]: TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/PriceScraper/src/main.py", line 16, in s.scrape() File "/home/ubuntu/PriceScraper/src/ScraperAlbert.py", line 27, in scrape raise Exception(f"Invalid response at [{resp.url}]:\n{resp.text}\nException:\n{traceback.format_exc()}") Exception: Invalid response at [https://www.albert.cz/api/v1/?operationName=GetCategoryProductSearch&variables=%7B%22lang%22:%22cs%22,%22category%22:%22zeC001%22,%22pageNumber%22:0,%22includeSponsoredProducts%22:false,%22pageSize%22:20,%22filterFlag%22:true,%22plainChildCategories%22:true%7D&extensions=%7B%22persistedQuery%22:%7B%22version%22:1,%22sha256Hash%22:%2273df954a408a1d92f799c2b1b9dc0e40ae4bcbb74e363138503343bfc7951768%22%7D%7D]: {"errors":[{"message":"Category with code 'zeC001' not found! (Active session catalogversions: grClassification.1.0, grocery-ukContentCatalog.Online, groceryProductCatalog.Online, productRelatedMediaCatalog.Default)","path":["categoryProductSearch"],"reasonCode":"unknownIdentifier","extensions":{"code":"INTERNAL_SERVER_ERROR","response":{"status":404,"statusText":"Not Found","body":{"message":"Category with code 'zeC001' not found! (Active session catalogversions: grClassification.1.0, grocery-ukContentCatalog.Online, groceryProductCatalog.Online, productRelatedMediaCatalog.Default)","reasonCode":"unknownIdentifier"}}}}],"data":{"categoryProductSearch":null}} Exception: Traceback (most recent call last): File "/home/ubuntu/PriceScraper/src/ScraperAlbert.py", line 23, in scrape for k in json["data"]["categoryProductSearch"]["products"]: TypeError: 'NoneType' object is not subscriptable