Merge "pgsql: fix self._conn.close() being called without connection"
This commit is contained in:
		@@ -146,7 +146,8 @@ class PostgresLock(locking.Lock):
 | 
			
		||||
        try:
 | 
			
		||||
            return _lock()
 | 
			
		||||
        except Exception:
 | 
			
		||||
            self._conn.close()
 | 
			
		||||
            if self._conn:
 | 
			
		||||
                self._conn.close()
 | 
			
		||||
            raise
 | 
			
		||||
 | 
			
		||||
    def release(self):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user