Permalink
Browse files

Fix syntax for python 2.5.

  • Loading branch information...
floppym committed Apr 16, 2012
1 parent d066143 commit 3b70a44dde5e7a787373bb7fd555efd0bd2f5199
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/bugz
View
@@ -295,7 +295,7 @@ def config_option(parser, get, section, option):
else:
print " ! Error: "+option+" is not set"
sys.exit(1)
- except ValueError as e:
+ except ValueError, e:
print " ! Error: option "+option+" is not in the right format: "+str(e)
sys.exit(1)
@@ -334,7 +334,7 @@ def get_config(args):
try:
parser.readfp(file)
sections = parser.sections()
- except ConfigParser.ParsingError as e:
+ except ConfigParser.ParsingError, e:
print " ! Error: Can't parse user configuration file: "+str(e)
sys.exit(1)

0 comments on commit 3b70a44

Please sign in to comment.