This PR adds a try/except block inside the get_suggested_chant function.
Sometimes, the json-cid endpoint path will return a json response where the info key is None, causing a 500 error on the chant create page for certain CantusIDs.
Here, we return None if a TypeError exception is caught.
Will add more robust error handling for issue #1515, but we will leave the issue open until further checks are made on Cantus Index
This PR adds a try/except block inside the
get_suggested_chant
function.Sometimes, the
json-cid
endpoint path will return a json response where theinfo
key isNone
, causing a 500 error on the chant create page for certain CantusIDs.Here, we return
None
if aTypeError
exception is caught.Will add more robust error handling for issue #1515, but we will leave the issue open until further checks are made on Cantus Index