Py3: Fix undefined variable

Variable 'e' has only local scope in except block in Py3

https://fedorahosted.org/freeipa/ticket/4985

Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Martin Basti 2017-01-11 17:15:49 +01:00
parent 9739d0354a
commit 7e8eb53375

View File

@ -404,7 +404,7 @@ class WSGIExecutioner(Executioner):
type(self).__name__,
principal,
name,
type(e).__name__)
type(error).__name__)
version = options.get('version', VERSION_WITHOUT_CAPABILITIES)
return self.marshal(result, error, _id, version)