From 5dd8a4df68f0ba929850c98498323d895b99ef63 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Wed, 8 Jan 2014 21:16:40 +0800 Subject: [PATCH] nvtake: exit on unexpected config --- nvchecker/tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nvchecker/tools.py b/nvchecker/tools.py index 21aede6..300bf22 100644 --- a/nvchecker/tools.py +++ b/nvchecker/tools.py @@ -19,9 +19,10 @@ def take(): s = core.Source(args.file) if not s.oldver or not s.newver: - logger.error( - "%s doesn't have both 'oldver' and 'newver' set, ignoring.", s + logger.fatal( + "%s doesn't have both 'oldver' and 'newver' set.", s ) + sys.exit(2) oldvers = core.read_verfile(s.oldver) newvers = core.read_verfile(s.newver)