Projet

Général

Profil

Tâche #22353

Scénario #22216: Traitement express MEN (49-51)

Creole : message d'erreur incompréhensible quand le répertoire ne contient pas de dico creole

Ajouté par Lionel Morin il y a plus de 6 ans. Mis à jour il y a plus de 6 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Gwenael Remond
Début:
26/09/2017
Echéance:
% réalisé:

100%

Temps estimé:
3.00 h
Temps passé:
Restant à faire (heures):
0.0

Description

Pour reproduire :

root@77b8453fb17f:/# python
Python 2.7.12 (default, Nov 20 2017, 18:23:56) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from creole.loader import creole_loader
>>> creole_loader(force_dirs='/tmp')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 761, in creole_loader
    eolobj.space_visitor()
  File "/usr/lib/python2.7/dist-packages/creole/objspace.py", line 454, in space_visitor
    SpaceAnnotator(self.space, self.paths, self)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 821, in __init__
    self.default_variable_options(space.variables)
AttributeError: 'ObjSpace' object has no attribute 'variables'
>>> 

Demandes liées

Précède Distribution EOLE - Tâche #22370: Ajouter un test creole qui valide la levée d'exception quand il n'y a aucune variable Fermé 27/09/2017 27/09/2017

Révisions associées

Révision f2fd91db (diff)
Ajouté par Gwenael Remond il y a plus de 6 ans

understandable error message

ref #22353

Révision e287ad1c (diff)
Ajouté par Joël Cuissinat il y a plus de 6 ans

Update translation Ref: #22353

Historique

#1 Mis à jour par Gwenael Remond il y a plus de 6 ans

  • Assigné à mis à Gwenael Remond

#2 Mis à jour par Scrum Master il y a plus de 6 ans

  • Statut changé de Nouveau à En cours

#3 Mis à jour par Joël Cuissinat il y a plus de 6 ans

  • Temps estimé mis à 3.00 h
  • Restant à faire (heures) mis à 0.25

#4 Mis à jour par Scrum Master il y a plus de 6 ans

  • Statut changé de En cours à Résolu

#5 Mis à jour par Joël Cuissinat il y a plus de 6 ans

  • Statut changé de Résolu à Fermé
  • % réalisé changé de 0 à 100
  • Restant à faire (heures) changé de 0.25 à 0.0

Paquet : creole 2.6.2-65

>>> from creole.loader import creole_loader
>>> creole_loader(force_dirs='/tmp')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 761, in creole_loader
    eolobj.space_visitor()
  File "/usr/lib/python2.7/dist-packages/creole/objspace.py", line 454, in space_visitor
    SpaceAnnotator(self.space, self.paths, self)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 826, in __init__
    raise CreoleDictConsistencyError(_('No configuration variables available in the configuration set'))
creole.error.CreoleDictConsistencyError: Aucune variable disponible dans la configuration

#6 Mis à jour par Joël Cuissinat il y a plus de 4 ans

  • Précède Tâche #22370: Ajouter un test creole qui valide la levée d'exception quand il n'y a aucune variable ajouté

Formats disponibles : Atom PDF