diff --git a/salt/client/__init__.py b/salt/client/__init__.py index f7f007903d..1a7aa10956 100644 --- a/salt/client/__init__.py +++ b/salt/client/__init__.py @@ -42,7 +42,7 @@ import salt.utils.verify import salt.utils.jid import salt.syspaths as syspaths from salt.exceptions import ( - EauthAuthenticationError, SaltInvocationError, SaltReqTimeoutError + EauthAuthenticationError, SaltInvocationError, SaltReqTimeoutError, SaltClientError ) import salt.ext.six as six @@ -1113,7 +1113,7 @@ class LocalClient(object): try: data = self.returners['{0}.get_jid'.format(self.opts['master_job_cache'])](jid) - except Exception: + except Exception as exc: raise SaltClientError('Could not examine master job cache. ' 'Error occured in {0} returner. ' 'Exception details: {1}'.format(self.opts['master_job_cache'],