for a date containing no data from Wikimedia Commons (for example, a date before which Wikimedia Commons existed).
Usually, this is not a problem, but on occasion the Wikimedia Commons API will return a malformed JSON in their response, and our script is breaking when this happens
To Reproduce
Try to run the wikimedia_commons script for dates in the 1990s. (It may take a few runs for the problem to appear).
Note that the script will break down (on occasion).
Expected behavior
The script should be able to handle the type of malformed JSON that is possible when we request metadata for an out-of-range date.
Bug Description
We sometimes run the script at
for a date containing no data from Wikimedia Commons (for example, a date before which Wikimedia Commons existed).
Usually, this is not a problem, but on occasion the Wikimedia Commons API will return a malformed JSON in their response, and our script is breaking when this happens
To Reproduce
wikimedia_commons
script for dates in the 1990s. (It may take a few runs for the problem to appear).Expected behavior
The script should be able to handle the type of malformed JSON that is possible when we request metadata for an out-of-range date.