summaryrefslogtreecommitdiff
path: root/processors/generic_processor.py
diff options
context:
space:
mode:
authorIan Clatworthy <ian.clatworthy@canonical.com>2009-08-27 23:26:40 +1000
committerIan Clatworthy <ian.clatworthy@canonical.com>2009-08-27 23:26:40 +1000
commita1462cd6591e0f69a4e9c79240ace96c1bfda4f2 (patch)
tree814592cfe418f253f68f0f80528e0a2a6063fa28 /processors/generic_processor.py
parent819595101b14d370c1d72bb444dab447307c1005 (diff)
downloadbzr-fastimport-a1462cd6591e0f69a4e9c79240ace96c1bfda4f2.tar.gz
Validate features are known before importing
Diffstat (limited to 'processors/generic_processor.py')
-rw-r--r--processors/generic_processor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/processors/generic_processor.py b/processors/generic_processor.py
index 9de1def..52610a3 100644
--- a/processors/generic_processor.py
+++ b/processors/generic_processor.py
@@ -546,4 +546,6 @@ class GenericProcessor(processor.ImportProcessor):
def feature_handler(self, cmd):
"""Process a FeatureCommand."""
- self.warning("assuming feature %s is supported" % cmd.feature_name)
+ feature = cmd.feature_name
+ if feature not in commands.FEATURE_NAMES:
+ raise plugin_errors.UnknownFeature(feature)