Some lint and silence the error

This commit is contained in:
Hellowlol 2020-03-14 15:35:56 +01:00
parent 47950201b0
commit 06ca74dbce

View file

@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
from plexapi import log, utils, compat
import xml
from plexapi import compat, log, utils
from plexapi.base import PlexObject
from plexapi.exceptions import BadRequest
from plexapi.utils import cast
@ -560,7 +563,10 @@ class Poster(PlexObject):
def select(self):
key = self._initpath[:-1]
data = '%s?url=%s' % (key, compat.quote_plus(self.ratingKey))
try:
self._server.query(data, method=self._server._session.put)
except xml.etree.ElementTree.ParseError:
pass
@utils.registerPlexObject