- self.engine=None
- logger.warning("Could not connect to database: db=%s, user=%s, host=%s, port=%s" % \
- (dbname, config.SFA_DB_USER, config.SFA_DB_HOST, config.SFA_DB_PORT))
- logger.debug("Using password=%s"%config.SFA_DB_PASSWORD)
- raise Exception,"Could not connect to database %s as %s"%(dbname,config.SFA_DB_USER)
-
+ self.engine = None
+ raise Exception("Could not connect to database %s as %s with psycopg2" % (
+ dbname, config.SFA_DB_USER))