From e9abce7d125342b805b42d38cb9bda6b6ce32ccd Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 4 Mar 2018 18:02:55 +0100 Subject: [PATCH] Remove obsolete code --- resources/lib/PlexAPI.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 44512ee1..343c19c2 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -286,18 +286,14 @@ class API(object): cast = [] producer = [] for child in self.item: - try: - if child.tag == 'Director': - director.append(child.attrib['tag']) - elif child.tag == 'Writer': - writer.append(child.attrib['tag']) - elif child.tag == 'Role': - cast.append(child.attrib['tag']) - elif child.tag == 'Producer': - producer.append(child.attrib['tag']) - except KeyError: - LOG.warn('Malformed PMS answer for getPeople: %s: %s', - child.tag, child.attrib) + if child.tag == 'Director': + director.append(child.attrib['tag']) + elif child.tag == 'Writer': + writer.append(child.attrib['tag']) + elif child.tag == 'Role': + cast.append(child.attrib['tag']) + elif child.tag == 'Producer': + producer.append(child.attrib['tag']) return { 'Director': director, 'Writer': writer,