From: Yann Dirson Date: Tue, 27 Feb 2007 22:39:09 +0000 (+0000) Subject: Correctly raise exception on unknown pull-policy. X-Git-Tag: v0.13~146 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/5a6d315ee8e8b217aa2720c4e44af8d17a4cd28c Correctly raise exception on unknown pull-policy. Signed-off-by: Yann Dirson --- diff --git a/stgit/commands/pull.py b/stgit/commands/pull.py index e4a2b62..7b3c90c 100644 --- a/stgit/commands/pull.py +++ b/stgit/commands/pull.py @@ -20,6 +20,7 @@ from optparse import OptionParser, make_option from stgit.commands.common import * from stgit.utils import * +from stgit.config import GitConfigException from stgit import stack, git @@ -73,7 +74,7 @@ def func(parser, options, args): elif policy == 'rebase': must_rebase = 1 else: - raise config.ConfigException, 'Unsupported pull-policy "%s"' % policy + raise GitConfigException, 'Unsupported pull-policy "%s"' % policy applied = prepare_rebase(real_rebase=must_rebase, force=options.force)