-
-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Ran a monthly Colab script this morning and it generated an error when running
dw.refresh_data(chart_id_datawrapper)
output with the following error
AssertionError Traceback (most recent call last)
in <cell line: 361>()
361 if cntLists == cntLatest:
362 dw.add_data(chart_id_datawrapper,dfLatestChanges)
--> 363 dw.refresh_data(chart_id_datawrapper)
364 dw.update_description(
365 chart_id=chart_id_datawrapper,
/usr/local/lib/python3.10/dist-packages/datawrapper/main.py in refresh_data(self, chart_id)
1242 """
1243 response = self.post(f"{self._CHARTS_URL}/{chart_id}/data/refresh")
-> 1244 assert isinstance(response, dict)
1245 return response
1246
AssertionError:
Environment
Running this in Colab
📎 Additional context
refresh_data(chart_id: str) → Response
Fetch configured external data and add it to the chart.
Parameters:
chart_id (str) – ID of chart, table or map to add data to.
Returns:
A requests.Response
Return type:
requests.Response