[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

Sebastien Coavoux s.coavoux at free.fr
Tue Feb 28 22:05:20 UTC 2012


The following commit has been merged in the debian/master branch:
commit b63fbdd98ba0bcca6e8642765233858ce33a67e8
Author: Sebastien Coavoux <s.coavoux at free.fr>
Date:   Wed Sep 28 10:15:05 2011 +0200

    Forgot try catch

diff --git a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
index 76e3ca3..a94e9fa 100644
--- a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
+++ b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
@@ -138,8 +138,14 @@ class Ndodb_Mysql_broker(BaseModule):
     #Create the database connection
     #TODO : finish (begin :) ) error catch and conf parameters...
     def connect_database(self):
-        self.db.connect_database()
-
+    
+        try :
+            self.db.connect_database()
+            
+        except _mysql_exceptions.OperationalError as exp:
+            print "[MysqlDB] Module raise an exception : %s . Please check the arguments!" % exp
+            #Do we need?
+            #exit 
 
 
     def get_instance_id(self,name):

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list