Fix reprcrash check in unserialize_report()

This commit is contained in:
Petr Messner
2017-08-09 17:41:30 +02:00
parent 9c8db61b6d
commit 4389843dcb

View File

@@ -344,7 +344,7 @@ def unserialize_report(name, reportdict):
ReprTraceback
)
if reportdict['longrepr']:
if 'reprcrash' and 'reprtraceback' in reportdict['longrepr']:
if 'reprcrash' in reportdict['longrepr'] and 'reprtraceback' in reportdict['longrepr']:
reprtraceback = reportdict['longrepr']['reprtraceback']
reprcrash = reportdict['longrepr']['reprcrash']