[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Sebastien Coavoux
s.coavoux at free.fr
Tue Feb 28 22:05:42 UTC 2012
The following commit has been merged in the debian/master branch:
commit 0765c49cd56becbc61f23437bc158bfb2f05fe43
Author: Sebastien Coavoux <s.coavoux at free.fr>
Date: Thu Sep 29 17:13:39 2011 +0200
Add : TODO after catching exception
diff --git a/shinken/db_mysql.py b/shinken/db_mysql.py
index d3457af..ad12bf7 100644
--- a/shinken/db_mysql.py
+++ b/shinken/db_mysql.py
@@ -58,7 +58,13 @@ class DBMysql(DB):
#Thanks http://www.dasprids.de/blog/2007/12/17/python-mysqldb-and-utf-8 for utf8 code :)
except _mysql_exceptions.OperationalError as exp:
+
+ #TODO : Stop properly the module
+ #Otherwise the module will keep running and fail on
+ #an non understandable exception
+
print "[MysqlDB] Module raise an exception : %s . Please check the arguments!" % exp
+
#Do we need?
#exit()
diff --git a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
index 0328ba5..0706d73 100644
--- a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
+++ b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
@@ -145,6 +145,11 @@ class Ndodb_Mysql_broker(BaseModule):
self.db.connect_database()
except _mysql_exceptions.OperationalError as exp:
+
+ #TODO : Stop properly the module
+ #Otherwise the module will keep running and fail on
+ #an non understandable exception
+
print "[MysqlDB] Module raise an exception : %s . Please check the arguments!" % exp
#Do we need?
#exit
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list