From f97bc79d8ae0f46bca5ff5d1613f84cd81bf345a Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 15 Feb 2021 16:34:14 -0500 Subject: [PATCH] badrequest fix --- modules/config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/config.py b/modules/config.py index 4b46d5ae..e8dfdda0 100644 --- a/modules/config.py +++ b/modules/config.py @@ -1124,7 +1124,12 @@ class Config: items = library.Plex.all() for i, item in enumerate(items, 1): length = util.print_return(length, "Processing: {}/{} {}".format(i, len(items), item.title)) - id_type, main_id = self.get_id(item, library, length) + try: + id_type, main_id = self.get_id(item, library, length) + except BadRequest: + util.print_stacktrace() + util.print_end(length, "{} {:<46} | {} for {}".format("Cache | ! |" if self.Cache else "Mapping Error:", item.guid, error_message, item.title)) + continue if isinstance(main_id, list): if id_type == "movie": for m in main_id: movie_map[m] = item.ratingKey