summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever <arfrever@gentoo.org>2011-12-30 11:49:57 -0500
committerAnthony G. Basile <blueness@gentoo.org>2011-12-30 11:50:11 -0500
commitab63707059e517154e3cd5b0f704384e8c74cea0 (patch)
tree3e7a277739c650d94a3d299e0052828d28030ea3 /WebappConfig/dotconfig.py
parentDon't set unused exception variables. (diff)
downloadwebapp-config-ab63707059e517154e3cd5b0f704384e8c74cea0.tar.gz
webapp-config-ab63707059e517154e3cd5b0f704384e8c74cea0.tar.bz2
webapp-config-ab63707059e517154e3cd5b0f704384e8c74cea0.zip
Update syntax of setting exceptions for compatibility with Python 3.
Reported-By: Arfrever <arfrever@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'WebappConfig/dotconfig.py')
-rw-r--r--WebappConfig/dotconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebappConfig/dotconfig.py b/WebappConfig/dotconfig.py
index 4fc47db..be01126 100644
--- a/WebappConfig/dotconfig.py
+++ b/WebappConfig/dotconfig.py
@@ -260,7 +260,7 @@ class DotConfig:
os.write(fd, '\n'.join(info))
os.close(fd)
- except Exception, e:
+ except Exception as e:
OUT.die('Unable to write to ' + self.__dot_config()
+ '\nError was: ' + str(e))