check the view_list is not none

This commit is contained in:
shaun 2017-01-03 16:40:49 +11:00
parent cb5fe7a354
commit 6a6578b711

View file

@ -65,6 +65,9 @@ class Embydb_Functions():
log.info("Error getting views: " + str(error))
view_list = []
if view_list is None:
view_list = []
for view in view_list:
if view['Type'] == "CollectionFolder":