diff --git a/parsers/surveys.py b/parsers/surveys.py index 8c06c9a..4ac5067 100644 --- a/parsers/surveys.py +++ b/parsers/surveys.py @@ -207,10 +207,11 @@ def LoadListScans(): # do the year folders if re.match("\d\d\d\d$", f): for fy, ffy, fisdiry in GetListDir(ff): - assert fisdiry, ffy - survexscansfolder = SurvexScansFolder(fpath=ffy, walletname=fy) - survexscansfolder.save() - LoadListScansFile(survexscansfolder) + if fisdiry: + assert fisdiry, ffy + survexscansfolder = SurvexScansFolder(fpath=ffy, walletname=fy) + survexscansfolder.save() + LoadListScansFile(survexscansfolder) # do the elif f != "thumbs":