Project

General

Profile

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

Added by Lionel Morin over 3 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
09/26/2017
Due date:
% Done:

100%

Estimated time:
3.00 h
Spent time:
Remaining (hours):
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'
>>> 

Related issues

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

Associated revisions

Revision f2fd91db (diff)
Added by Gwenael Remond over 3 years ago

understandable error message

ref #22353

Revision e287ad1c (diff)
Added by Joël Cuissinat over 3 years ago

Update translation Ref: #22353

History

#1 Updated by Gwenael Remond over 3 years ago

  • Assigned To set to Gwenael Remond

#2 Updated by Scrum Master over 3 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Joël Cuissinat over 3 years ago

  • Estimated time set to 3.00 h
  • Remaining (hours) set to 0.25

#4 Updated by Scrum Master over 3 years ago

  • Status changed from En cours to Résolu

#5 Updated by Joël Cuissinat over 3 years ago

  • Status changed from Résolu to Fermé
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 0.25 to 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 Updated by Joël Cuissinat over 1 year ago

  • Precedes Tâche #22370: Ajouter un test creole qui valide la levée d'exception quand il n'y a aucune variable added

Also available in: Atom PDF