Projet

Général

Profil

Bug #15388

démarrage avec LANG posé sur une valeur non existante

Ajouté par Frédéric Péters il y a environ 7 ans. Mis à jour il y a plus de 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
12 mars 2017
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

[2017-03-12 13:26:28] exception caught
Exception:
  type = '<type 'exceptions.KeyError'>', value = ''fr''

Stack trace (most recent call first):
  File "/var/lib/jenkins/jobs/auquotidien/workspace/wcs/wcs/qommon/publisher.py", line 399, in install_lang
   397         if lang is None or not self.translations.has_key(lang):
   398             lang = (os.environ.get('LANG') or 'en')[:2]
>  399         translation = self.translations[lang]
   400         self.gettext = translation.gettext
   401         self.ngettext = translation.ngettext

  locals: 
     lang = 'fr'
     self = <publisher.WcsPublisher object at 0x4d25a90>

Fichiers

Révisions associées

Révision c4d913fe (diff)
Ajouté par Frédéric Péters il y a environ 7 ans

misc: do not fail on unknown language (#15388)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 7 ans

#2

Mis à jour par Thomas Noël il y a environ 7 ans

Ack

#3

Mis à jour par Frédéric Péters il y a environ 7 ans

  • Statut changé de En cours à Résolu (à déployer)
commit c4d913febcd493c4b075e368898860fdf273da3b
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sun Mar 12 13:48:02 2017 +0100

    misc: do not fail on unknown language (#15388)
#4

Mis à jour par Frédéric Péters il y a plus de 5 ans

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

Formats disponibles : Atom PDF