Bug #56131
unhtmled_label se retrouve avec un objet str "proxy" plutôt qu'une vrai chaîne
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
12 août 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/51479/?environment=dev
TypeError: expected string or bytes-like object .... File "wcs/fields.py", line 287, in unhtmled_label return force_str(html.unescape(force_text(re.sub('<.*?>', ' ', self.label or ''))).strip()) File "re.py", line 192, in sub return _compile(pattern, flags).sub(repl, string, count)
string contient 'Aucun'
qui je pense est une chaîne traduite.
Historique
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Nouveau à Fermé
Dupliqué et corrigé dans Development #56997: TypeError: expected string or bytes-like object.