fix for template null vars

This commit is contained in:
meisnate12 2022-01-06 09:57:29 -05:00
parent 01a6297742
commit e7e7ef163b

View file

@ -97,6 +97,7 @@ class DataFile:
for tm in variables:
if variables[tm] is None:
optional.append(str(tm))
variables.pop(tm)
if self.data_type == "Collection" and "collection_name" not in variables:
variables["collection_name"] = str(name)
if self.data_type == "Playlist" and "playlist_name" not in variables: