mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Revert "Keep trying until session obtained"
This reverts commit 5364cf9004.
			
			
This commit is contained in:
		@@ -33,12 +33,7 @@ class DatabaseInterface(object):
 | 
			
		||||
 | 
			
		||||
    @contextmanager
 | 
			
		||||
    def get_session(self) -> Session:
 | 
			
		||||
        session = None
 | 
			
		||||
        while session == None:
 | 
			
		||||
            try:
 | 
			
		||||
                session = self._sessionmaker()  # type: Session
 | 
			
		||||
            except:
 | 
			
		||||
                pass
 | 
			
		||||
        session = self._sessionmaker()  # type: Session
 | 
			
		||||
        try:
 | 
			
		||||
            yield session
 | 
			
		||||
            session.commit()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user