Closed 646e62 closed 3 months ago
Verifying the URL checks to see if the case will cause an issue during the API call. URL verification is off by default to avoid needlessly pinging the website, but could be activated if the program encounters this error.
Started to run into "too many requests" errors with the verify_url kwarg after just a few pings.
Adding a new "error" key/value pair to the return (default to None) addresses this problem and paves the way for future, more robust error handling.
Some cases on CanLII don't have URLs that correspond to the usual formula. Most of the time, this is because the case uses a CanLII number as a URL rather than the neutral citation. This bug currently crashes the system, but it should be avoidable by running the verify_url kwarg by default.