summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2017-02-01 17:12:17 -0500
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2017-02-01 17:12:17 -0500
commite02c3c769bbcbe26d9132caf28cad6d2d2b4766a (patch)
tree37a606f488464eee41cffe4ca32cb9ccba9a74b2 /buildscripts
parent133dbba8f749d3ac758a5365d504341331b03468 (diff)
downloadmongo-e02c3c769bbcbe26d9132caf28cad6d2d2b4766a.tar.gz
SERVER-27285 Fix exception handling in PeriodicKillSecondaries.
The exception needs a name in order to access its 'args' attribute.
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/resmokelib/testing/hooks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/testing/hooks.py b/buildscripts/resmokelib/testing/hooks.py
index 82196af0c75..bc7c6ff2652 100644
--- a/buildscripts/resmokelib/testing/hooks.py
+++ b/buildscripts/resmokelib/testing/hooks.py
@@ -476,7 +476,7 @@ class PeriodicKillSecondaries(CustomBehavior):
self._check_repl_dbhash(test_report)
self._restart_and_clear_fixture()
- except:
+ except Exception as err:
self.hook_test_case.logger.exception(
"Encountered an error running PeriodicKillSecondaries.")
self.hook_test_case.return_code = 2