summaryrefslogtreecommitdiffstats
path: root/layman/makeconf.py
diff options
context:
space:
mode:
authorBrian Dolbec <brian.dolbec@gmail.com>2011-03-26 20:39:37 -0700
committerBrian Dolbec <brian.dolbec@gmail.com>2011-03-26 20:39:37 -0700
commitd0339cb228c16eb491d489a2276e254bacb41c81 (patch)
treebb61cdb2189c44f0742646ae7e75c5b0b87ba396 /layman/makeconf.py
parente14906b88ec2da99dba82d565d88ed5ca1d40099 (diff)
downloadlayman-d0339cb228c16eb491d489a2276e254bacb41c81.tar.gz
layman-d0339cb228c16eb491d489a2276e254bacb41c81.tar.bz2
layman-d0339cb228c16eb491d489a2276e254bacb41c81.zip
migrate except ... as
Diffstat (limited to 'layman/makeconf.py')
-rw-r--r--layman/makeconf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/layman/makeconf.py b/layman/makeconf.py
index b6f5d90..1dd2b56 100644
--- a/layman/makeconf.py
+++ b/layman/makeconf.py
@@ -257,7 +257,7 @@ class MakeConf:
make_conf.close()
- except Exception, error:
+ except Exception as error:
self.output.error('MakeConf: write(); Failed to write "'
+ self.path + '".\nError was:\n' + str(error))
return False
@@ -274,7 +274,7 @@ class MakeConf:
make_conf.close()
- except Exception, error:
+ except Exception as error:
self.output.error('MakeConf: content(); Failed to read "' +
self.path + '".\nError was:\n' + str(error))
raise error