From 785b46c42809ad9fce2fd5756cff9324c9e75621 Mon Sep 17 00:00:00 2001 From: pewpews Date: Tue, 17 May 2016 22:10:41 +0200 Subject: [PATCH] Fixed bug: An exception occured when adding galleries on fresh install; Resolves #149 --- .gitignore | 1 + version/gallerydb.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f58eeed..a46fef0 100644 --- a/.gitignore +++ b/.gitignore @@ -237,3 +237,4 @@ FakesAssemblies/ /res/gallery_ext_ico.ico /res/sample.png *.hpdb +/plugins diff --git a/version/gallerydb.py b/version/gallerydb.py index 08747c5..5b4cb71 100644 --- a/version/gallerydb.py +++ b/version/gallerydb.py @@ -496,8 +496,9 @@ def check_exists(name, galleries=None, filter=True): Note: key will be normcased """ #pdb.set_trace() - if not galleries: + if galleries is None: galleries = app_constants.GALLERY_DATA + app_constants.GALLERY_ADDITION_DATA + filter = True if filter: filter_list = []