mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-22 06:13:25 -07:00
Raise exception so the uri with the xml
that fails are logged.
This commit is contained in:
parent
dd5ba05c88
commit
74435d2c40
1 changed files with 5 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
from plexpy import logger, helpers
|
||||
from httplib import HTTPSConnection
|
||||
from httplib import HTTPConnection
|
||||
from xml.dom import minidom
|
||||
import ssl
|
||||
|
||||
|
||||
|
@ -96,7 +97,10 @@ class HTTPHandler(object):
|
|||
elif output_format == 'json':
|
||||
output = helpers.convert_xml_to_json(request_content)
|
||||
elif output_format == 'xml':
|
||||
output = helpers.parse_xml(request_content)
|
||||
try:
|
||||
output = minidom.parseString(request_content)
|
||||
except Exception as err:
|
||||
raise
|
||||
else:
|
||||
output = request_content
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue