Ignore:
Timestamp:
13/06/12 23:09:13 (7 years ago)
Author:
mnagni
Message:

Share project "HPFos" into " http://proj.badc.rl.ac.uk/svn/ndg/mauRepo"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/libs/commons_db.py

    r8323 r8344  
    3333          (see http://docs.sqlalchemy.org/en/latest/orm/events.html?highlight=session%20events#sqlalchemy.orm.events.SessionEvents)      
    3434        """ 
    35         self._connection = connection 
     35        self._connection = connection         
    3636        self._script = script 
    37         self.engine = create_engine(self._connection, echo=sql_echo) 
     37        self.engine = None 
     38        try: 
     39            self.engine = create_engine(self._connection, echo=sql_echo) 
     40        except Exception as e: 
     41            print e 
    3842        self.metadata = MetaData(bind=self.engine)         
    3943        self._session = None 
Note: See TracChangeset for help on using the changeset viewer.