When running porch-pirate with the --dump flag, the script crashes with a json.decoder.JSONDecodeError. The error occurs specifically when attempting to query certain workspaces (in my case, for the keyword "rappi").
Possible cause:
It seems porchpirate.collections(w) is returning an empty string or invalid JSON, which is passed directly to json.loads() without checking. This causes the script to crash.
Suggested fix:
Check if the result is empty or not valid JSON before trying to parse it with json.loads().

When running porch-pirate with the --dump flag, the script crashes with a json.decoder.JSONDecodeError. The error occurs specifically when attempting to query certain workspaces (in my case, for the keyword "rappi").
Possible cause:
It seems porchpirate.collections(w) is returning an empty string or invalid JSON, which is passed directly to json.loads() without checking. This causes the script to crash.
Suggested fix:
Check if the result is empty or not valid JSON before trying to parse it with json.loads().