Traceback (most recent call last): File "/home/ubuntu/PriceScraper/src/ScraperAlbert.py", line 22, 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 26, 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:%22zeD005%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:%2252764906c44e42aec923b3896810a61c85d344084ba2080b5c655b3453d4560e%22%7D%7D]: {"errors":[{"message":"Category with code 'zeD005' 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 'zeD005' 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 22, in scrape for k in json["data"]["categoryProductSearch"]["products"]: TypeError: 'NoneType' object is not subscriptable