fix for template null vars

pull/590/head
meisnate12 3 years ago
parent 01a6297742
commit e7e7ef163b

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

Loading…
Cancel
Save