From 4389843dcb1069519fd408687822881e953b3512 Mon Sep 17 00:00:00 2001 From: Petr Messner Date: Wed, 9 Aug 2017 17:41:30 +0200 Subject: [PATCH] Fix reprcrash check in unserialize_report() --- xdist/slavemanage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdist/slavemanage.py b/xdist/slavemanage.py index adc7fdd..3ec53a8 100644 --- a/xdist/slavemanage.py +++ b/xdist/slavemanage.py @@ -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']