sync: ignore bad named directory when looking for dependancies
authorPierre-Olivier Mercier <nemunaire@nemunai.re>
Sun, 9 Dec 2018 23:30:02 +0000 (00:30 +0100)
committerPierre-Olivier Mercier <nemunaire@nemunai.re>
Sun, 9 Dec 2018 23:31:30 +0000 (00:31 +0100)
admin/sync/exercices.go

index fb491cc..f62ffdd 100644 (file)
@@ -46,7 +46,8 @@ func buildDependancyMap(i Importer, theme fic.Theme) (dmap map[int64]fic.Exercic
                        var ename string
                        eid, ename, err = parseExerciceDirname(edir)
                        if err != nil {
-                               return
+                               err = nil
+                               continue
                        }
 
                        var e fic.Exercice