From 3d1f8b6aea28b1539a0d0cc205dfe8f6e4c4d91c Mon Sep 17 00:00:00 2001 From: Ajda Date: Thu, 5 Jan 2017 08:51:45 +0100 Subject: [PATCH] Merge pull request #1864 from nikicc/safer-check-for-sparse [FIX] OWSave: Safer Check if Writer Support Sparse (cherry picked from commit 7acb5fc58028c61f5a9715cd10951cc5d7c6304f) --- Orange/widgets/data/owsave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orange/widgets/data/owsave.py b/Orange/widgets/data/owsave.py index a9bfab8b4e2..487c2e2628c 100644 --- a/Orange/widgets/data/owsave.py +++ b/Orange/widgets/data/owsave.py @@ -25,7 +25,7 @@ class OWSave(widget.OWWidget): writers = FileFormat.writers sparse_writers = {ext: w for ext, w in FileFormat.writers.items() - if w.SUPPORT_SPARSE_DATA} + if getattr(w, 'SUPPORT_SPARSE_DATA', False)} def __init__(self): super().__init__()