Commit 80acf563 authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed #3 by checking 'parameter is None' instead of 'not parameter'.

parent 78943632
......@@ -23,7 +23,7 @@ from setuptools import setup, find_packages
setup(
name='xbob.db.mnist',
version='1.0.4a0',
version='1.0.5a0',
description='MNIST Database Access API for Bob',
url='https://pypi.python.org/pypi/xbob.db.mnist',
license='GPLv3',
......
......@@ -145,7 +145,7 @@ class Database():
The list/tuple of default parameters that will be returned in case parameters is None or empty.
If omitted, all valid_parameters are used.
"""
if not parameters:
if parameters is None:
# parameters are not specified, i.e., 'None' or empty lists
parameters = default_parameters if default_parameters is not None else valid_parameters
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment