Skip to content

Commit

Permalink
Don't always require format for non csv sources
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Oct 17, 2018
1 parent 1df6436 commit dcd7330
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dataflows/processors/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def process_datapackage(self, dp: Package):
base_path = None
descriptor = dict(path=self.load_source,
profile='tabular-data-resource')
if 'format' in self.options:
descriptor['format'] = self.options['format']
descriptor['format'] = self.options.get('format')
self.options.setdefault('ignore_blank_headers', True)
self.options.setdefault('headers', 1)
self.res = Resource(descriptor,
Expand Down

0 comments on commit dcd7330

Please sign in to comment.