Previously, check_items would cause the server to crash if the CSS tags were changed and broke the rest of the code that depended on the scraped results to exist. With this PR, the functions are updated to better handle situations when the My Nintendo Rewards website updates with breaking changes. In addition, error handling was added to the database modification transactions incase there is an issue with those functions.
Fixes #36
Previously,
check_items
would cause the server to crash if the CSS tags were changed and broke the rest of the code that depended on the scraped results to exist. With this PR, the functions are updated to better handle situations when the My Nintendo Rewards website updates with breaking changes. In addition, error handling was added to the database modification transactions incase there is an issue with those functions.