Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Commit

Permalink
Fixed bug: An exception occured when adding galleries on fresh install;
Browse files Browse the repository at this point in the history
Resolves #149
  • Loading branch information
twiddli committed May 17, 2016
1 parent fa667e0 commit 785b46c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,4 @@ FakesAssemblies/
/res/gallery_ext_ico.ico
/res/sample.png
*.hpdb
/plugins
3 changes: 2 additions & 1 deletion version/gallerydb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 785b46c

Please sign in to comment.