[scodoc-devel] [SVN] Scolar : [1804] amelioration detection ancien codage bacs

eviennet at lipn.univ-paris13.fr eviennet at lipn.univ-paris13.fr
Dim 7 Oct 17:09:27 CEST 2018


Une pièce jointe HTML a été nettoyée...
URL: https://listes.univ-paris13.fr/pipermail/scodoc-devel/attachments/20181007/9a74b832/attachment.htm 
-------------- section suivante --------------
Modified: branches/ScoDoc7/sco_bac.py
===================================================================
--- branches/ScoDoc7/sco_bac.py	2018-10-07 15:05:45 UTC (rev 1803)
+++ branches/ScoDoc7/sco_bac.py	2018-10-07 15:09:27 UTC (rev 1804)
@@ -114,7 +114,7 @@
         self.specialite = specialite
         self._abbrev, self._type = BACS_SSP.get( (bac, specialite), (None, None))
         # Parfois, la specialite commence par la serie: essaye
-        if self._type is None and specialite.startswith(bac):
+        if self._type is None and specialite and specialite.startswith(bac):
             specialite = specialite[len(bac):].strip(' -')
             self._abbrev, self._type = BACS_SSP.get( (bac, specialite), (None, None))
     


Plus d'informations sur la liste de diffusion scodoc-devel