Simplify boolean expression in executils.py
There's no need for checking again if next_up is not instance of CausedByException as this is exactly what the else clause means. Change-Id: I437b3b4948e89d6a138be03e9613e522b10d4824
This commit is contained in:
parent
1d15614c20
commit
17c2e2c740
@ -97,7 +97,6 @@ class CausedByException(Exception):
|
||||
buf.write(line)
|
||||
if i + 1 != len(lines):
|
||||
buf.write(os.linesep)
|
||||
if not isinstance(next_up, CausedByException):
|
||||
# Don't go deeper into non-caused-by exceptions... as we
|
||||
# don't know if there exception 'cause' attributes are even
|
||||
# useable objects...
|
||||
|
Loading…
x
Reference in New Issue
Block a user