Projet

Général

Profil

Bug #54368

UnboundLocalError: local variable 'answer' referenced before assignment

Ajouté par Frédéric Péters il y a presque 3 ans. Mis à jour il y a presque 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
28 mai 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/qommon/form.py", line 1630, in __init__
  1628                 self.hint = _('Please answer this simple mathematical question as proof you are not a bot.')
  1629         self.add(StringWidget, 'q', required=True, attrs={'required': 'required'})
> 1630         token['answer'] = str(answer)
  1631
  1632     def _parse(self, request):

Misère de gens qui voudraient des captcha.


Fichiers

Révisions associées

Révision bf063692 (diff)
Ajouté par Frédéric Péters il y a presque 3 ans

forms: fix creation of captcha answer when using translations (#54368)

Révision 77dfc941 (diff)
Ajouté par Frédéric Péters il y a presque 3 ans

forms: fix creation of captcha answer when using translations (#54368)

Historique

#1

Mis à jour par Frédéric Péters il y a presque 3 ans

#2

Mis à jour par Frédéric Péters il y a presque 3 ans

Refait en comparant plutôt les versions traduites, histoire de ne pas réintroduire N_.

#3

Mis à jour par Emmanuel Cazenave il y a presque 3 ans

  • Statut changé de Solution proposée à Solution validée
#4

Mis à jour par Frédéric Péters il y a presque 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit bf063692b6d9e9fbcdedb28f9d37a9225ce01046
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri May 28 10:29:36 2021 +0200

    forms: fix creation of captcha answer when using translations (#54368)
#5

Mis à jour par Frédéric Péters il y a presque 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF