threads / patch / 6951

patchCorrectly raise exception on unknown pull-policy.

Subject: [PATCH] Correctly raise exception on unknown pull-policy.

## tl;dr

One message between Feb 25, 2007 and Feb 25, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Yann Dirson· Feb 25, 2007, 19:27 UTC · lore
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
 stgit/commands/pull.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Show changes to stgit/commands/pull.py +2 −1
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)
 

← back to recent threads