[postprocessor:classify] handle missing "extension" (#138)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user