diff options
author | Ian Clatworthy <ian.clatworthy@canonical.com> | 2009-08-27 23:26:40 +1000 |
---|---|---|
committer | Ian Clatworthy <ian.clatworthy@canonical.com> | 2009-08-27 23:26:40 +1000 |
commit | a1462cd6591e0f69a4e9c79240ace96c1bfda4f2 (patch) | |
tree | 814592cfe418f253f68f0f80528e0a2a6063fa28 /processors/generic_processor.py | |
parent | 819595101b14d370c1d72bb444dab447307c1005 (diff) | |
download | bzr-fastimport-a1462cd6591e0f69a4e9c79240ace96c1bfda4f2.tar.gz |
Validate features are known before importing
Diffstat (limited to 'processors/generic_processor.py')
-rw-r--r-- | processors/generic_processor.py | 4 |
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) |