Project

General

Profile

Tâche #9214

Distribution EOLE - Scénario #9238: Demandes critiques 2.4.1

CreoleGet $ma_variable sort un traceback

Added by Lionel Morin almost 7 years ago. Updated almost 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
10/10/2014
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
0.0

Description

Lorsqu'on appelle CreoleGet avec un dollars, il sort l'aide puis un traceback

root@amonecole:~# CreoleGet $type_amon
usage: CreoleGet [-h] [-l {debug,info,warning,error,critical}] [-v] [-d]
                 [--groups]
                 [variable] [default]

Get creole variable

positional arguments:
  variable              Nom de variable creole
  default               Valeur par défaut si la variable n’existe pas

optional arguments:
  -h, --help            show this help message and exit
  --groups              Liste les groupes de conteneurs

logging:
  -l {debug,info,warning,error,critical}, --log-level {debug,info,warning,error,critical}
                        Log level
  -v, --verbose         Verbose mode
  -d, --debug           Debug mode

Multiple values are separated with NEWLINE character '\n'.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pyeole/loghandlers.py", line 92, in emit
    message = self.format(record)
  File "/usr/lib/python2.7/dist-packages/pyeole/loghandlers.py", line 172, in format
    message = logging.StreamHandler.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
    return fmt.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 467, in format
    s = self._fmt % record.__dict__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)


Related issues

Related to Distribution EOLE - Anomalie #8717: avoir le message d'exception avec "err.message" ne pas une bonne pratique Fermé

Associated revisions

Revision 78757b38 (diff)
Added by Joël Cuissinat almost 7 years ago

bin/CreoleGet : messages d'exception en unicode !

Fixes: #9214 @1h

History

#1 Updated by Joël Cuissinat almost 7 years ago

La commande proposée revient tout simplement à taper :

CreoleGet

M'enfin, UnicodeDecodeError ce n'est pas n'importe quel traceback, quelqu'un a du oublier des u"" quelque part :)

#2 Updated by Joël Cuissinat almost 7 years ago

  • Assigned To set to Joël Cuissinat
  • Start date deleted (10/10/2014)
  • Remaining (hours) changed from 2.0 to 0.15

#3 Updated by Joël Cuissinat almost 7 years ago

  • Status changed from Nouveau to Résolu
  • Start date set to 10/10/2014
  • % Done changed from 0 to 100

#4 Updated by Joël Cuissinat almost 7 years ago

Test associé ajouté dans : le Cas de test : SC-T09-001 - Tests CreoleGet/CreoleSet

#5 Updated by Joël Cuissinat almost 7 years ago

  • Parent task changed from #9167 to #9238

#6 Updated by Lionel Morin almost 7 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.15 to 0.0

Test Squash ok sur scribe.

Also available in: Atom PDF