Commits

Patrick Walton  committed a1ba351

Never raise errors if dependencies can't be found in a batch of metadata, since this prevents user plugins from depending on built-in plugins

  • Participants
  • Parent commits 5c5f44a

Comments (0)

Files changed (2)

File bespin/config.py

 # stack key here
 c.errorstack_key = None
 
-# If you're running from a build, you don't necessarily want to raise plugin
-# dependency errors
-c.raise_plugin_dependency_errors = False
-
 def set_profile(profile):
     if profile == "test" or profile == "dev":
         client_plugin_path = path.getcwd() / ".." / "bespinclient" / "plugins"
-        c.raise_plugin_dependency_errors = True
         
         c.plugin_path = [dict(name="supported", 
                     path=client_plugin_path / "supported"),

File bespin/plugins.py

         for dep_name in plugin.dependencies:
             dep = dep_graph.get(dep_name)
             if dep is None:
-                if config.c.raise_plugin_dependency_errors:
-                    raise PluginError("Unable to find plugin " 
-                        + dep_name + " while creating metadata list")
-                else:
-                    continue
+                continue
             dep.append(plugin_name)
 
     # Build up a blacklist.