diff options
-rw-r--r-- | fastimport/processors/filter_processor.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fastimport/processors/filter_processor.py b/fastimport/processors/filter_processor.py index 4f254ba..2445ae2 100644 --- a/fastimport/processors/filter_processor.py +++ b/fastimport/processors/filter_processor.py @@ -121,7 +121,8 @@ class FilterProcessor(processor.ImportProcessor): parents = [cmd.from_] else: parents = None - self.parents[":" + cmd.mark] = parents + if cmd.mark is not None: + self.parents[":" + cmd.mark] = parents def reset_handler(self, cmd): """Process a ResetCommand.""" |