[68] catch error

This commit is contained in:
meisnate12 2023-02-14 17:31:19 -05:00
parent 42c457fcc7
commit f472821f7a
2 changed files with 5 additions and 2 deletions

View file

@ -1 +1 @@
1.18.3-develop67
1.18.3-develop68

View file

@ -383,7 +383,10 @@ class CollectionBuilder:
logger.debug("Validating Method: delete_playlist")
logger.debug(f"Value: {data[methods['delete_playlist']]}")
if util.parse(self.Type, "delete_playlist", self.data, datatype="bool", methods=methods, default=False):
self.obj = self.library.get_playlist(self.name)
try:
self.obj = self.library.get_playlist(self.name)
except Failed as e:
logger.error(e)
raise Deleted(self.delete())
else:
self.libraries.append(self.library)