changeset 796:3900169ac81b

plugins: Don't crash when running the `chef plugins` command outside a site.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 07 Sep 2016 23:14:36 -0700
parents 922092c6eb8a
children be8b233cc69a
files piecrust/commands/builtin/plugins.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/commands/builtin/plugins.py	Wed Sep 07 23:14:15 2016 -0700
+++ b/piecrust/commands/builtin/plugins.py	Wed Sep 07 23:14:36 2016 -0700
@@ -1,5 +1,6 @@
 import logging
 from piecrust.commands.base import ChefCommand
+from piecrust.pathutil import SiteNotFoundError
 
 
 logger = logging.getLogger(__name__)