From ebf7269c6b1649b167f8cc935b9969b486ac42f0 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 21 Aug 2014 21:57:16 +0100 Subject: [PATCH] Remove unused variable --- salt/utils/cloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/utils/cloud.py b/salt/utils/cloud.py index 749f6e9a9d..0199608953 100644 --- a/salt/utils/cloud.py +++ b/salt/utils/cloud.py @@ -2221,7 +2221,7 @@ def diff_node_cache(prov_dir, node, new_data, opts): with salt.utils.fopen(path, 'r') as fh_: try: cache_data = msgpack.load(fh_) - except ValueError as exc: + except ValueError: log.warning('Cache for {0} was corrupt: Deleting'.format(node)) cache_data = {}