Skip to content

Commit

Permalink
Don't use to_json whili zipping
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Sep 18, 2017
1 parent 3d25cfd commit 09cf76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datapackage/package.py
Expand Up @@ -213,7 +213,7 @@ def arcname(resource):
# Save data package
try:
with zipfile.ZipFile(target, 'w') as z:
descriptor = json.loads(self.to_json())
descriptor = json.loads(json.dumps(self.__current_descriptor))
for i, resource in enumerate(self.resources):
path = None
if resource.local:
Expand Down

0 comments on commit 09cf76f

Please sign in to comment.