[postprocessor:classify] handle missing "extension" (#138)

This commit is contained in:
Mike Fährmann
2018-12-11 20:10:02 +01:00
parent b7a9f6cc49
commit 79f6755c60

View File

@@ -33,7 +33,7 @@ class ClassifyPP(PostProcessor):
}
def prepare(self, pathfmt):
ext = pathfmt.keywords["extension"]
ext = pathfmt.keywords.get("extension")
if ext in self.mapping:
self._dir = pathfmt.realdirectory + os.sep + self.mapping[ext]