From 592029cee393e47336d76eb56f152f6b191600a4 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Wed, 6 Jan 2021 13:17:21 -0500 Subject: [PATCH] additional exception for previously deleted items. --- utility/media_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/media_manager.py b/utility/media_manager.py index 24a4ec1..0e79bed 100644 --- a/utility/media_manager.py +++ b/utility/media_manager.py @@ -309,7 +309,7 @@ def plex_deletion(items, libraries, toggleDeletion): plex_item = plex.fetchItem(int(item.rating_key)) plex_item.delete() print("Item: {} was deleted".format(plex_item.title)) - except NotFound: + except (NotFound, AttributeError): print("Item: {} may already have been deleted.".format(item)) for _library in libraries: section = plex.library.sectionByID(_library.key)