diff options
author | 2011-12-30 11:49:57 -0500 | |
---|---|---|
committer | 2011-12-30 11:50:11 -0500 | |
commit | ab63707059e517154e3cd5b0f704384e8c74cea0 (patch) | |
tree | 3e7a277739c650d94a3d299e0052828d28030ea3 /WebappConfig/dotconfig.py | |
parent | Don't set unused exception variables. (diff) | |
download | webapp-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.py | 2 |
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)) |