diff options
author | dol-sen <brian.dolbec@gmail.com> | 2011-08-09 17:47:00 -0700 |
---|---|---|
committer | dol-sen <brian.dolbec@gmail.com> | 2011-08-09 17:47:00 -0700 |
commit | 779c56e34676bcf113dea93c748eeec5f214952f (patch) | |
tree | d90d3a1ec4aa73162acc4b9cdc21b3970d68155c /layman/makeconf.py | |
parent | e9742ba56ea23e9d61505a41e9a5cdda60bbfc99 (diff) | |
download | layman-779c56e34676bcf113dea93c748eeec5f214952f.tar.gz layman-779c56e34676bcf113dea93c748eeec5f214952f.tar.bz2 layman-779c56e34676bcf113dea93c748eeec5f214952f.zip |
revert using "as" in exceptions. enable using the "with" statement in py-2.5.
fix run_command( ,*arg, )
Diffstat (limited to 'layman/makeconf.py')
-rw-r--r-- | layman/makeconf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layman/makeconf.py b/layman/makeconf.py index 1dd2b56..b6f5d90 100644 --- a/layman/makeconf.py +++ b/layman/makeconf.py @@ -257,7 +257,7 @@ class MakeConf: make_conf.close() - except Exception as error: + except Exception, 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 as error: + except Exception, error: self.output.error('MakeConf: content(); Failed to read "' + self.path + '".\nError was:\n' + str(error)) raise error |