summaryrefslogtreecommitdiffstats
path: root/library/check_yum_update.py
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-01-06 18:54:47 +0100
committerRodolfo Carvalho <rhcarvalho@gmail.com>2017-01-12 14:23:19 +0100
commitfeeeb48f45ecbde3e5bcc2a66c7f947080d433e5 (patch)
treebda7e3db3c58820969f85c06451eadf2da54194c /library/check_yum_update.py
parent80e824c00c73f15a5958680d73d68b505da4d327 (diff)
downloadopenshift-feeeb48f45ecbde3e5bcc2a66c7f947080d433e5.tar.gz
openshift-feeeb48f45ecbde3e5bcc2a66c7f947080d433e5.tar.bz2
openshift-feeeb48f45ecbde3e5bcc2a66c7f947080d433e5.tar.xz
openshift-feeeb48f45ecbde3e5bcc2a66c7f947080d433e5.zip
Make flake8 (py35) happy on bare except
Diffstat (limited to 'library/check_yum_update.py')
-rwxr-xr-xlibrary/check_yum_update.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/check_yum_update.py b/library/check_yum_update.py
index 0c1974324..296ebd44f 100755
--- a/library/check_yum_update.py
+++ b/library/check_yum_update.py
@@ -49,7 +49,7 @@ def main(): # pylint: disable=missing-docstring,too-many-branches
bail('Error with yum repository configuration: %s' % e)
# 3. other/unknown
# * just report the problem verbatim
- except: # pylint: disable=bare-except
+ except: # pylint: disable=bare-except; # noqa
bail('Unexpected error with yum repository: %s' % sys.exc_info()[1])
packages = module.params['packages']
@@ -59,7 +59,7 @@ def main(): # pylint: disable=missing-docstring,too-many-branches
yb.install(name=pkg)
except yum.Errors.InstallError as e: # pylint: disable=invalid-name
no_such_pkg.append(pkg)
- except: # pylint: disable=bare-except
+ except: # pylint: disable=bare-except; # noqa
bail('Unexpected error with yum install/update: %s' %
sys.exc_info()[1])
if not packages:
@@ -75,7 +75,7 @@ def main(): # pylint: disable=missing-docstring,too-many-branches
try:
txn_result, txn_msgs = yb.buildTransaction()
- except: # pylint: disable=bare-except
+ except: # pylint: disable=bare-except; # noqa
bail('Unexpected error during dependency resolution for yum update: \n %s' %
sys.exc_info()[1])