repository/Base.py: Fix regression (UIBase is no more)
Commit e506442996f1a4 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:
parent
374dea8063
commit
d05162675c
@ -19,6 +19,8 @@ Changes
|
|||||||
Bug Fixes
|
Bug Fixes
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
* Fix regression (UIBase is no more).
|
||||||
|
|
||||||
|
|
||||||
Pending for the next major release
|
Pending for the next major release
|
||||||
==================================
|
==================================
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
from offlineimap import CustomConfig
|
from offlineimap import CustomConfig
|
||||||
from offlineimap.ui import getglobalui
|
from offlineimap.ui import getglobalui
|
||||||
import os.path
|
import os.path
|
||||||
import sys
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
def LoadRepository(name, account, reqtype):
|
def LoadRepository(name, account, reqtype):
|
||||||
@ -167,7 +166,7 @@ class BaseRepository(CustomConfig.ConfigHelperMixin):
|
|||||||
except (KeyboardInterrupt):
|
except (KeyboardInterrupt):
|
||||||
raise
|
raise
|
||||||
except:
|
except:
|
||||||
UIBase.getglobalui().warn("ERROR Attempting to make folder " \
|
getglobalui().warn("ERROR Attempting to create folder " \
|
||||||
+ key + ":" +traceback.format_exc())
|
+ key + ":" +traceback.format_exc())
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user