mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 23:50:03 -06:00
py3: rpcserver fix undefined variable
variable 'e' is valid only in except block in py3, so it must be assigned to different variable for further usage https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
cca9aa43e1
commit
aa036e5f33
@ -389,8 +389,9 @@ class WSGIExecutioner(Executioner):
|
|||||||
)
|
)
|
||||||
# get at least some context of what is going on
|
# get at least some context of what is going on
|
||||||
params = options
|
params = options
|
||||||
|
error = e
|
||||||
if error:
|
if error:
|
||||||
result_string = type(e).__name__
|
result_string = type(error).__name__
|
||||||
else:
|
else:
|
||||||
result_string = 'SUCCESS'
|
result_string = 'SUCCESS'
|
||||||
self.info('[%s] %s: %s(%s): %s',
|
self.info('[%s] %s: %s(%s): %s',
|
||||||
|
Loading…
Reference in New Issue
Block a user