summaryrefslogtreecommitdiff
path: root/alot/__main__.py
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2016-07-14 14:31:24 +0200
committerLucas Hoffmann <l-m-h@web.de>2016-12-09 11:26:19 +0100
commit84c79143dcf0a56112d8703f24052ca1f5f2832c (patch)
treee824421a44e77464f262f344bc0f4b87d610ea0c /alot/__main__.py
parentfe748a7f47fb61d46dd88c270c2329e6ff19a895 (diff)
Fix except syntax
Diffstat (limited to 'alot/__main__.py')
-rw-r--r--alot/__main__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/__main__.py b/alot/__main__.py
index 6202daf1..6bdd129c 100644
--- a/alot/__main__.py
+++ b/alot/__main__.py
@@ -110,7 +110,7 @@ def main():
args = Options()
try:
args.parseOptions() # When given no argument, parses sys.argv[1:]
- except usage.UsageError, errortext:
+ except usage.UsageError as errortext:
print '%s' % errortext
print 'Try --help for usage details.'
sys.exit(1)
@@ -155,7 +155,7 @@ def main():
try:
settings.read_config(alotconfig)
settings.read_notmuch_config(notmuchconfig)
- except (ConfigError, OSError, IOError), e:
+ except (ConfigError, OSError, IOError) as e:
sys.exit(e)
# store options given by config swiches to the settingsManager:
@@ -179,7 +179,7 @@ def main():
cmdstring += ' ' + args.subOptions.rest
else:
cmdstring = settings.get('initial_command')
- except CommandParseError, e:
+ except CommandParseError as e:
sys.exit(e)
# set up and start interface