From dcab406c553fc8b3c2e0aef955e9e8adea0590d8 Mon Sep 17 00:00:00 2001 From: Amit Aronovitch Date: Sat, 23 Nov 2024 13:21:11 +0200 Subject: [PATCH] remove redundant check from Dataset.load() (#603) --- src/tablib/core.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tablib/core.py b/src/tablib/core.py index b89953b6..33655e4f 100644 --- a/src/tablib/core.py +++ b/src/tablib/core.py @@ -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