changeset 842:a85d08ffe1f6

admin: Fix crash when running `admin run` outside of a website.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 19 Feb 2017 22:04:33 -0800
parents f0930178fd01
children 3f3e24d81936
files piecrust/commands/builtin/admin.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/commands/builtin/admin.py	Wed Feb 15 22:17:54 2017 -0800
+++ b/piecrust/commands/builtin/admin.py	Sun Feb 19 22:04:33 2017 -0800
@@ -3,6 +3,7 @@
 import logging
 from piecrust import CACHE_DIR
 from piecrust.commands.base import ChefCommand
+from piecrust.pathutil import SiteNotFoundError
 
 
 logger = logging.getLogger(__name__)