Remove invalid argument from format_exc() calls
The argument here is an integer "limit", not the exception. I think that we only notice this on Python 3 because of exception chaining. It causes a real failure though because the exception handler that is meant to fall into "pass" raises another exception when ipv6 doesn't work. Change-Id: I0908a0a3dbb2356caabbffd062379751a0b61c41
This commit is contained in:
parent
f740369099
commit
20bffbcfc0
@ -70,7 +70,7 @@ def main():
|
|||||||
'traceroute6 -n {host}'.format(host=traceroute_host))
|
'traceroute6 -n {host}'.format(host=traceroute_host))
|
||||||
passed = True
|
passed = True
|
||||||
except (subprocess.CalledProcessError, OSError) as e:
|
except (subprocess.CalledProcessError, OSError) as e:
|
||||||
ret['traceroute_v6_exception'] = traceback.format_exc(e)
|
ret['traceroute_v6_exception'] = traceback.format_exc()
|
||||||
ret['traceroute_v6_output'] = e.output
|
ret['traceroute_v6_output'] = e.output
|
||||||
ret['traceroute_v6_return'] = e.returncode
|
ret['traceroute_v6_return'] = e.returncode
|
||||||
pass
|
pass
|
||||||
@ -79,7 +79,7 @@ def main():
|
|||||||
'traceroute -n {host}'.format(host=traceroute_host))
|
'traceroute -n {host}'.format(host=traceroute_host))
|
||||||
passed = True
|
passed = True
|
||||||
except (subprocess.CalledProcessError, OSError) as e:
|
except (subprocess.CalledProcessError, OSError) as e:
|
||||||
ret['traceroute_v4_exception'] = traceback.format_exc(e)
|
ret['traceroute_v4_exception'] = traceback.format_exc()
|
||||||
ret['traceroute_v4_output'] = e.output
|
ret['traceroute_v4_output'] = e.output
|
||||||
ret['traceroute_v4_return'] = e.returncode
|
ret['traceroute_v4_return'] = e.returncode
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user