We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a14dba8 commit 1f5ce6eCopy full SHA for 1f5ce6e
airtable/airtable.py
@@ -165,8 +165,13 @@ def _build_batch_record_objects(self, records):
165
return [{"fields": record} for record in records]
166
167
def _process_response(self, response):
168
- """ Pass through exception so we can check status"""
169
- response.raise_for_status()
+ """ Pass through exception so we can check status, inject error"""
+ try:
170
+ response.raise_for_status()
171
+ except requests.HTTPError as exc:
172
+ ## TODO should inject only in certain error codes?
173
+ exc.args = (*exc.args, exc.response.json())
174
+ raise
175
return response.json()
176
177
def record_url(self, record_id):
0 commit comments