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:
Amaury Medeiros 2016-06-21 14:07:11 +01:00
parent 1d15614c20
commit 17c2e2c740
1 changed files with 0 additions and 1 deletions

View File

@ -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...