Projet

Général

Profil

Bug #17787

rendu ezt versus webservice non défini

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

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

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/qommon/storage.py", line 370, in get_filename
   368             if ignore_errors:
   369                 return None
>  370             raise KeyError()
   371         except ImportError as e:
   372             if ignore_errors:

  locals:
     ignore_errors = False
     ignore_migration = False
     cls = <class 'wcs.wscalls.NamedWsCall'>
     filename = '/var/lib/wcs-au-quotidien/demarches.chateauroux-metropole.fr/wscalls/aquabike_piscine_vagues'

  File "/usr/lib/python2.7/dist-packages/wcs/qommon/storage.py", line 309, in get
   307         filename = os.path.join(cls.get_objects_dir(), fix_key(id))
   308         return cls.get_filename(filename, ignore_errors=ignore_errors,
>  309                                 ignore_migration=ignore_migration)
   310
   311     @classmethod

  locals:
     ignore_errors = False
     ignore_migration = False
     id = 'aquabike_piscine_vagues'
     cls = <class 'wcs.wscalls.NamedWsCall'>
     filename = '/var/lib/wcs-au-quotidien/demarches.chateauroux-metropole.fr/wscalls/aquabike_piscine_vagues'

  File "/usr/lib/python2.7/dist-packages/wcs/wscalls.py", line 200, in __getattr__
   198             return NamedWsCall.get(attr).call()
   199         except ValueError:
>  200             raise AttributeError()
   201
   202

  locals:
     self = <wcs.wscalls.WsCallsSubstitutionProxy object at 0x7f377bde3c10>
     attr = 'aquabike_piscine_vagues'

  File "/usr/lib/python2.7/dist-packages/wcs/qommon/ezt.py", line 646, in _get_value
   644           ob = ob[int(attr)]
   645         except (ValueError, TypeError):
>  646           raise UnknownReference(refname)
   647
   648   # make sure we return a string instead of some various Python types

  locals:
     attr = 'aquabike_piscine_vagues'
     ctx = <wcs.qommon.ezt._context instance at 0x7f3772a3d830>
     refname = 'webservice.aquabike_piscine_vagues.places.available'
     rest = ['aquabike_piscine_vagues', 'places', 'available']
     ob = <wcs.wscalls.WsCallsSubstitutionProxy object at 0x7f377bde3c10>
     start = 'webservice'
     .0 = ('webservice.aquabike_piscine_vagues.places.available', 'webservice', ['aquabike_piscine_vagues', 'places', 'available'])

Fichiers

Révisions associées

Révision 8e7543ed (diff)
Ajouté par Frédéric Péters il y a plus de 6 ans

misc: do not crash on ezt calling undefined webservice (#17787)

Historique

#1

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

#2

Mis à jour par Thomas Noël il y a plus de 6 ans

Bien vu, ack.

#3

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

  • Statut changé de En cours à Résolu (à déployer)
commit 8e7543ed64a6d4bd108011342e7d7ec2597c5c54
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Jul 29 14:27:46 2017 +0200

    misc: do not crash on ezt calling undefined webservice (#17787)
#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