repository/Base.py: Fix regression (UIBase is no more)
Commit e506442996 changed getglobalui() back to UIBase.getglobalui()
although the import had changed earlier, causing a regression.
Fix this by using the correct and current way of calling the ui.
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
			
			
This commit is contained in:
		 Sebastian Spaeth
					Sebastian Spaeth
				
			
				
					committed by
					
						 Nicolas Sebrecht
						Nicolas Sebrecht
					
				
			
			
				
	
			
			
			 Nicolas Sebrecht
						Nicolas Sebrecht
					
				
			
						parent
						
							374dea8063
						
					
				
				
					commit
					d05162675c
				
			| @@ -19,6 +19,8 @@ Changes | ||||
| Bug Fixes | ||||
| --------- | ||||
|  | ||||
| * Fix regression (UIBase is no more). | ||||
|  | ||||
|  | ||||
| Pending for the next major release | ||||
| ================================== | ||||
|   | ||||
| @@ -19,7 +19,6 @@ | ||||
| from offlineimap import CustomConfig | ||||
| from offlineimap.ui import getglobalui | ||||
| import os.path | ||||
| import sys | ||||
| import traceback | ||||
|  | ||||
| def LoadRepository(name, account, reqtype): | ||||
| @@ -167,7 +166,7 @@ class BaseRepository(CustomConfig.ConfigHelperMixin): | ||||
|                 except (KeyboardInterrupt): | ||||
|                     raise | ||||
|                 except: | ||||
|                     UIBase.getglobalui().warn("ERROR Attempting to make folder " \ | ||||
|                     getglobalui().warn("ERROR Attempting to create folder " \ | ||||
|                         + key + ":"  +traceback.format_exc()) | ||||
|  | ||||
|         # | ||||
|   | ||||
		Reference in New Issue
	
	Block a user