Don't duplicate Python error messages (#8270)
This commit is contained in:
parent
fec11757d5
commit
d6458a6ba7
@ -883,8 +883,8 @@ def long_message(self):
|
|||||||
else:
|
else:
|
||||||
# The error happened in in the Python code, so try to show
|
# The error happened in in the Python code, so try to show
|
||||||
# some context from the Package itself.
|
# some context from the Package itself.
|
||||||
out.write('%s: %s\n\n' % (self.name, self.message))
|
|
||||||
if self.context:
|
if self.context:
|
||||||
|
out.write('\n')
|
||||||
out.write('\n'.join(self.context))
|
out.write('\n'.join(self.context))
|
||||||
out.write('\n')
|
out.write('\n')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user