diff --git a/parsers/cavetab.py b/parsers/cavetab.py index 68ea4b3..814b3a0 100644 --- a/parsers/cavetab.py +++ b/parsers/cavetab.py @@ -228,8 +228,9 @@ def LoadCaveTab(): newCaveAndEntrance.save() logging.info("Added CaveAndEntrance "+str(newCaveAndEntrance)+"\n") - f = flatpages.models.EntranceRedirect(originalURL = line[AutogenFile], entrance = newEntrance) - f.save() + if line[AutogenFile] != "": + f = flatpages.models.EntranceRedirect(originalURL = line[AutogenFile], entrance = newEntrance) + f.save() # lookup function modelled on GetPersonExpeditionNameLookup