yasserqureshi1 / Sneaker-Monitors

A collection of web monitors that notify of restocks or updates on sneaker related sites through Discord Webhook. This includes Shopify, Nike SNKRS (supports 42 countries), Supreme and now Footsite monitors!
GNU General Public License v3.0
463 stars 125 forks source link

KEyError: 'productinfo' #106

Closed SebastianLischer closed 3 years ago

SebastianLischer commented 3 years ago

Exception found: Traceback (most recent call last): File "c:\Users\z00475vu\Documents\GitHub\Cook-Group-Monitors\Finished_Monitors\SNKRS-test.py", line 189, in monitor for j in item['productInfo']: KeyError: 'productInfo'

just getting this error all the time and realy dont know how to fix it im running the original programm direct from ur github

yasserqureshi1 commented 3 years ago

I had a look and i realised that I’m printing these exceptions. This key error occurs because on the SNKRS app and website there are some posts that are sneakers you can buy as well as other posts like videos and pictures and it tries to filter them out. However the error that you see isn’t an issue - it just prints it out. I’ll get rid of this in the next update as it can be annoying and misinterpreted