If you start getting API key authentication errors for example it's probably best to cancel the whole run rather than trigger the same error for every following batch.
Maybe this:
from datasette_enrichments import CancelException
raise CancelException("Run cancelled due to API authentication error")
If you start getting API key authentication errors for example it's probably best to cancel the whole run rather than trigger the same error for every following batch.
Maybe this: