diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2017-02-01 17:12:17 -0500 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2017-02-01 17:12:17 -0500 |
commit | e02c3c769bbcbe26d9132caf28cad6d2d2b4766a (patch) | |
tree | 37a606f488464eee41cffe4ca32cb9ccba9a74b2 /buildscripts | |
parent | 133dbba8f749d3ac758a5365d504341331b03468 (diff) | |
download | mongo-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.py | 2 |
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 |