Module: check_mk
Branch: master
Commit: d0b872bb8e2ec658e08e426586f14c235c5a24e6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d0b872bb8e2ec6…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Wed Apr 3 15:26:46 2019 +0200
mk_mongodb: remove no-op error handling
CMK-1885
Change-Id: I0d75cf46e9713cab6a64cb2201455d576534c11f
---
agents/plugins/mk_mongodb | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/agents/plugins/mk_mongodb b/agents/plugins/mk_mongodb
index 99cbd43..489ba72 100755
--- a/agents/plugins/mk_mongodb
+++ b/agents/plugins/mk_mongodb
@@ -15,12 +15,7 @@ import os
import pprint
import sys
import time
-
-try:
- import pymongo
-except ImportError:
- sys.stderr.write("ERROR: Unable to import pymongo module\n")
- sys.exit(2)
+import pymongo # pylint: disable=import-error
def main(): # pylint: disable=too-many-branches,too-many-locals