From 4675b4bb7d2390a00da42cb2ddcc23c73d452756 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Thu, 12 Jun 2008 18:36:59 +0200 Subject: [PATCH] Find CmdException in common MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Tardieu Signed-off-by: Karl Hasselström --- stgit/commands/export.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stgit/commands/export.py b/stgit/commands/export.py index e731a49..1010a88 100644 --- a/stgit/commands/export.py +++ b/stgit/commands/export.py @@ -97,7 +97,7 @@ def func(parser, options, args): num = len(patches) if num == 0: - raise CmdException, 'No patches applied' + raise common.CmdException, 'No patches applied' zpadding = len(str(num)) if zpadding < 2: @@ -158,10 +158,10 @@ def func(parser, options, args): try: descr = tmpl % tmpl_dict except KeyError, err: - raise CmdException, 'Unknown patch template variable: %s' \ + raise common.CmdException, 'Unknown patch template variable: %s' \ % err except TypeError: - raise CmdException, 'Only "%(name)s" variables are ' \ + raise common.CmdException, 'Only "%(name)s" variables are ' \ 'supported in the patch template' if options.stdout: -- 2.11.0