diff options
author | Raul Cuza <raulcuza@gmail.com> | 2011-12-09 15:38:12 -0500 |
---|---|---|
committer | Raul Cuza <raulcuza@gmail.com> | 2011-12-09 15:38:12 -0500 |
commit | 4310284f6df01caf1b686c9bac8955364a895755 (patch) | |
tree | d4b6967a7a31c3f3458fb7f6b60003ca01b7604e /src/lib/Client | |
parent | 37a390b28863e2bbcebe9413a67e475623257901 (diff) | |
download | bcfg2-4310284f6df01caf1b686c9bac8955364a895755.tar.gz bcfg2-4310284f6df01caf1b686c9bac8955364a895755.tar.bz2 bcfg2-4310284f6df01caf1b686c9bac8955364a895755.zip |
Correct syntax for try/except statements.
In earlier versions of python commas (,) could
be used in except statements. The new way is to
use 'as'.
Diffstat (limited to 'src/lib/Client')
-rw-r--r-- | src/lib/Client/Tools/YUMng.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py index a018e68fb..e296561bf 100644 --- a/src/lib/Client/Tools/YUMng.py +++ b/src/lib/Client/Tools/YUMng.py @@ -742,7 +742,7 @@ class YUMng(Bcfg2.Client.Tools.PkgTool): else: self.logger.error("Second pass yum install failed.") self.logger.debug(" %s" % restring) - except yum.Errors.YumBaseError, e: + except yum.Errors.YumBaseError as e: self.logger.error("Yum transaction error: %s" % str(e)) self.yb.conf.skip_broken = skipBroken |