Skip to content

Commit

Permalink
remove redundant check from Dataset.load() (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitAronovitch authored and claudep committed Nov 24, 2024
1 parent eeb8461 commit dcab406
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/tablib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,6 @@ def load(self, in_stream, format=None, **kwargs):
if not hasattr(fmt, 'import_set'):
raise UnsupportedFormat(f'Format {format} cannot be imported.')

if not import_set:
raise UnsupportedFormat(f'Format {format} cannot be imported.')

fmt.import_set(self, stream, **kwargs)
return self

Expand Down

0 comments on commit dcab406

Please sign in to comment.