Skip to content
Commit 1b664f71 authored by Sam Thursfield's avatar Sam Thursfield
Browse files

_plugincontext.py: Fix unhandled exception if plugin is not found

This fixes an AttributeError triggered if we try to import a plugin from
a package which is installed but does not contain that plugin.

Before:

    [--:--:--] START   Resolving pipeline
    Traceback (most recent call last):
      ...
    AttributeError: 'NoneType' object has no attribute 'dist'

After:

    [--:--:--] START   Resolving pipeline
    [00:00:00] FAILURE Resolving pipeline
    Error loading pipeline: Pip package buildstream-external does not contain a plugin named 'nonexistant-plugin'
parent 955b184e
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment