Skip to content

Commit

Permalink
change default value for data to None
Browse files Browse the repository at this point in the history
  • Loading branch information
enkidulan committed May 23, 2024
1 parent 5a96516 commit a217154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pycrunch/importing.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def wait_for_batch_status(self, batch, status):
raise ValueError("The batch did not reach the '%s' state in the "
"given time. Please check again later." % status)

def add_source(self, ds, filename, fp, mimetype, data={}):
def add_source(self, ds, filename, fp, mimetype, data=None):
"""Create a new Source on the given dataset and return its URL."""
sources_url = ds.user_url.catalogs['sources']
# Don't call Catalog.post here (which would force application/json);
Expand Down

0 comments on commit a217154

Please sign in to comment.