From 9a0a90fc17488b70f2371f0c5cebe65ac9710817 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 23 Dec 2017 18:44:29 +0100 Subject: [PATCH] return error when import fails --- dotdrop/dotdrop.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index 822fa28..76670dd 100755 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -16,12 +16,14 @@ except: errmsg = ''' Dotdrop has been updated to be included in pypi and the way it needs to be called has changed. + First update dotdrop: $ git submodule update --init --recursive And then re-run the bootstrap script: $ ./dotdrop/bootstrap.sh ''' print(errmsg) + sys.exit(1) from .logger import Logger from .templategen import Templategen from .installer import Installer