iloveitaly / shopify_api_extensions

Pagination, backoff, and other extensions to the Shopify ruby API
MIT License
10 stars 2 forks source link

fix logical operator and sleep #1

Closed firestonem closed 6 years ago

firestonem commented 7 years ago

So the problem wasn't a change in the string from Shopify's end, it was that the logic is backwards which caused it to skip this block upon the 'Too Many Requests' message. Then when the logic was fixed, the count was tripping up so I replaced it with sleep like the block below that. This worked when I tested it in Ledbury Staging