Skip to content

Commit 6b0241f

Browse files
ajdapretnarastaric
authored andcommitted
Merge pull request biolab#1864 from nikicc/safer-check-for-sparse
[FIX] OWSave: Safer Check if Writer Support Sparse (cherry picked from commit 7acb5fc)
1 parent 796b15a commit 6b0241f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/widgets/data/owsave.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class OWSave(widget.OWWidget):
2525

2626
writers = FileFormat.writers
2727
sparse_writers = {ext: w for ext, w in FileFormat.writers.items()
28-
if w.SUPPORT_SPARSE_DATA}
28+
if getattr(w, 'SUPPORT_SPARSE_DATA', False)}
2929

3030
def __init__(self):
3131
super().__init__()

0 commit comments

Comments
 (0)