From 3ba0c4d1f351ba4be845a15c70051bbb95160eb8 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 13 Aug 2012 08:36:39 +0200 Subject: dch: Fix error reporting on parsing errors --- gbp/scripts/dch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py index ba96631c..1dfc97b0 100644 --- a/gbp/scripts/dch.py +++ b/gbp/scripts/dch.py @@ -337,8 +337,8 @@ def main(argv): try: parser = GbpOptionParserDebian(command=os.path.basename(argv[0]), prefix='', usage='%prog [options] paths') - except ConfigParser.ParsingError, err: - gbp.log.errror(err) + except ConfigParser.ParsingError as err: + gbp.log.err(err) return 1 range_group = GbpOptionGroup(parser, "commit range options", "which commits to add to the changelog") -- cgit v1.2.3