aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-07-05 21:26:37 +0200
committerGuido Günther <agx@sigxcpu.org>2016-07-05 21:26:37 +0200
commit24cd58b282e62b46e6b215f6e6d9ec09626a578f (patch)
tree69631eb32dec5cb683446f9525bed22c5dfb07fe /examples
parent29f16cafbf62f5a7ac63565135ebc5de009f0017 (diff)
Remove some leftover configparser imports
Git-Dch: Ignore
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/gbp-posttag-push7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/gbp-posttag-push b/examples/gbp-posttag-push
index c65ef4b3..0a9bf65e 100755
--- a/examples/gbp-posttag-push
+++ b/examples/gbp-posttag-push
@@ -21,7 +21,6 @@
from __future__ import print_function
-from six.moves import configparser
import os
import subprocess
import sys
@@ -30,6 +29,8 @@ import gbp.log
from gbp.config import GbpOptionParser
from gbp.deb.git import DebianGitRepository
+from gbp.errors import GbpError
+from gbp.scripts.common import ExitCodes
class Env(object):
@@ -84,9 +85,9 @@ def main(argv):
try:
parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='',
usage='%prog [options] paths')
- except configparser.ParsingError as err:
+ except GbpError as err:
gbp.log.error(err)
- return 1
+ return ExitCodes.parse_error
parser.add_option("-d", "--dry-run", dest="dryrun", default=False,
action="store_true", help="dry run, don't push.")