Skip to content

Commit

Permalink
Merge pull request #420 from palewire/patch-16
Browse files Browse the repository at this point in the history
Fix None check in update_chart to work with DataFrames
  • Loading branch information
chekos authored Jul 15, 2024
2 parents 066ffdc + 10cf591 commit 21a870f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datawrapper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ def update_chart(
obj = self.get_chart(chart_id)

# Add data, if provided
if data:
if data is not None:
self.add_data(chart_id=obj["id"], data=data)

# Return the result
Expand Down

0 comments on commit 21a870f

Please sign in to comment.