Skip to content

Commit

Permalink
Fixed overwriting the items when failed to load extractors
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdbng committed Feb 24, 2016
1 parent f69ca1d commit 534f607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slyd/slyd/resources/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _read_resource(manager, resource):
schemas = manager.resource(resource)
assert isinstance(schemas, dict)
except (AssertionError, TypeError):
manager.savejson({}, ['items'])
manager.savejson({}, [resource])
return {}
return schemas

Expand Down

0 comments on commit 534f607

Please sign in to comment.