diff --git a/offlineimap/repository/Base.py b/offlineimap/repository/Base.py index 7e1dd4d..10adca4 100644 --- a/offlineimap/repository/Base.py +++ b/offlineimap/repository/Base.py @@ -45,6 +45,7 @@ def LoadRepository(name, account, reqtype): class BaseRepository(CustomConfig.ConfigHelperMixin): def __init__(self, reposname, account): + self.ui = getglobalui() self.account = account self.config = account.getconfig() self.name = reposname @@ -166,7 +167,7 @@ class BaseRepository(CustomConfig.ConfigHelperMixin): except (KeyboardInterrupt): raise except: - getglobalui().warn("ERROR Attempting to create folder " \ + self.ui.warn("ERROR Attempting to create folder " \ + key + ":" +traceback.format_exc()) #