Commits

Cédric Bonhomme committed 7e5302b

Display a message when data about number of car lots are not available

  • Participants
  • Parent commits 5f5a132

Comments (0)

Files changed (1)

             try:
                 total_places = parking.getElementsByTagName('vdlxml:total')[0].childNodes[0].nodeValue
             except:
-                total_places = 0
+                total_places = "pas de données"
             try:
                 available_places = parking.getElementsByTagName('vdlxml:actuel')[0].childNodes[0].nodeValue
             except:
-                available_places = 0
+                available_places = "pas de données"
 
             latitude = parking.getElementsByTagName('vdlxml:localisation')[0]. \
                         getElementsByTagName('vdlxml:localisationLatitude')[0].childNodes[0].nodeValue