Projet

Général

Profil

0041-misc-fix-raising-format-tuple-pylint-error-62099.patch

Lauréline Guérin, 22 mars 2022 10:31

Télécharger (1,33 ko)

Voir les différences:

Subject: [PATCH 41/65] misc: fix raising-format-tuple pylint error (#62099)

 passerelle/contrib/grenoble_gru/models.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
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
-