From 4f650ee48ef5d891f6ad08d04edf6c34f42d9ca2 Mon Sep 17 00:00:00 2001 From: mikedarcy Date: Tue, 12 Jun 2018 16:38:21 -0700 Subject: [PATCH] Fix bug when no expr passed to filter_dict(). --- bdbag/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bdbag/__init__.py b/bdbag/__init__.py index 67d93e1..0f7b2d5 100644 --- a/bdbag/__init__.py +++ b/bdbag/__init__.py @@ -117,7 +117,7 @@ def escape_url_path(url, safe='/'): def filter_dict(expr, entry): if not expr: - return False + return True match = FILTER_REGEX.search(expr) if not match: raise ValueError("Unable to parse expression: %s" % expr) diff --git a/setup.py b/setup.py index db9d39d..1a681fa 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ url='https://github.com/fair-research/bdbag/', maintainer='USC Information Sciences Institute, Informatics Systems Research Division', maintainer_email='isrd-support@isi.edu', - version="1.4.0", + version="1.4.1", packages=find_packages(), package_data={'bdbag': ['profiles/*.*']}, test_suite='test',