[71] #870 fix for NoneType Error

This commit is contained in:
meisnate12 2022-06-27 22:32:09 -04:00
parent e35feb45ef
commit 7e528bf7d0
2 changed files with 4 additions and 3 deletions

View file

@ -1 +1 @@
1.17.0-develop70
1.17.0-develop71

View file

@ -1284,9 +1284,10 @@ class Plex(Library):
if attr and attr not in values:
values.append(attr)
elif filter_attr in ["filepath", "folder"]:
values = [loc for loc in item.locations]
values = [loc for loc in item.locations if loc]
else:
values = [getattr(item, filter_actual)]
test_value = getattr(item, filter_actual)
values = [test_value] if test_value else []
if util.is_string_filter(values, modifier, filter_data):
return False
elif filter_attr in builder.boolean_filters: