Index: trunk/ippToPsps/jython/mysql.py
===================================================================
--- trunk/ippToPsps/jython/mysql.py	(revision 32019)
+++ trunk/ippToPsps/jython/mysql.py	(revision 32020)
@@ -36,9 +36,14 @@
         # set up JDBC connection
         self.url = "jdbc:mysql://"+self.dbHost+"/"+self.dbName+"?user="+self.dbUser+"&password="+self.dbPass
-        self.con = DriverManager.getConnection(self.url)
-        self.connectionID = self.getLastConnectionID()
-        self.logger.debug("MySQL connection to %s with ID %d" % (dbType, self.connectionID))
-
-        #self.stmt = self.con.createStatement()
+        try:
+            self.con = DriverManager.getConnection(self.url)
+            self.connectionID = self.getLastConnectionID()
+            self.logger.debug("MySQL connection to %s with ID %d" % (dbType, self.connectionID))
+        except:
+            self.logger.error("Unable to connect to " + self.url)
+            self.everythingOK = False
+            return
+
+        self.everythingOK = True
 
 
