0041-misc-fix-raising-format-tuple-pylint-error-62099.patch
passerelle/contrib/grenoble_gru/models.py | ||
---|---|---|
177 | 177 |
try: |
178 | 178 |
root = etree.fromstring(xml_content) |
179 | 179 |
except etree.XMLSyntaxError as e: |
180 |
raise APIError('Invalid XML returned: %s', e)
|
|
180 |
raise APIError('Invalid XML returned: %s' % e)
|
|
181 | 181 |
cache.set(cache_key, xml_content, 3600) |
182 | 182 |
if as_list: |
183 | 183 |
return [el.find('identifiant').text for el in root.xpath(path)] |
... | ... | |
287 | 287 |
try: |
288 | 288 |
demand = etree.fromstring(response.content) |
289 | 289 |
except etree.XMLSyntaxError as e: |
290 |
raise APIError('Invalid XML returned: %s', e)
|
|
290 |
raise APIError('Invalid XML returned: %s' % e)
|
|
291 | 291 |
return {'data': xml2dict(demand)} |
292 |
- |