diff --git a/salt/modules/win_pkg.py b/salt/modules/win_pkg.py index 8d3d0af075..e182b5e495 100644 --- a/salt/modules/win_pkg.py +++ b/salt/modules/win_pkg.py @@ -438,7 +438,7 @@ def _get_package_info(name): repodata = msgpack.loads(repofile.read()) or {} except: return 'Windows package repo not available' - except IOError as exc: + except IOError: log.debug('Not able to read repo file') return 'Windows package repo not available' if not repodata: