From c7434ea46c3b24dad3acd7258fbf43d2b6bf8e18 Mon Sep 17 00:00:00 2001 From: Christopher League Date: Wed, 3 Aug 2016 12:17:09 -0400 Subject: [PATCH] Fix typo in format string in machineui This was causing the error message "not all arguments converted during string formatting." Specifically: ``` % offlineimap -u machineui OfflineIMAP 7.0.4 Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception) msg:protocol:MainThread:7.2.0 msg:initbanner:MainThread:OfflineIMAP+7.0.4%0A++Licensed+under+the+GNU+GPL+v2+or+any+later+version+%28with+an+OpenSSL+exception%29 msg:registerthread:Account+sync+MYHOST:MYHOST msg:acct:Account+sync+MYHOST:MYHOST error::Account+sync+MYHOST:ERROR%3A+While+attempting+to+sync+account+%27MYHOST%27%0A++not+all+arguments+converted+during+string+formatting msg:acctdone:Account+sync+MYHOST:MYHOST msg:threadExited:MainThread:Account+sync+MYHOST msg:unregisterthread:MainThread:Account+sync+MYHOST msg:terminate:MainThread:0%0A%0A ``` Signed-off-by: Christopher League Signed-off-by: Nicolas Sebrecht --- offlineimap/ui/Machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/ui/Machine.py b/offlineimap/ui/Machine.py index 7915b14..ae3eab8 100644 --- a/offlineimap/ui/Machine.py +++ b/offlineimap/ui/Machine.py @@ -103,7 +103,7 @@ class MachineUI(UIBase): folder.get_saveduidvalidity(), folder.get_uidvalidity())) def connecting(s, reposname, hostname, port): - s._printData(s.logger.info, 'connecting', "%s\n%s\nMs"% (hostname, + s._printData(s.logger.info, 'connecting', "%s\n%s\n%s"% (hostname, str(port), reposname)) def syncfolders(s, srcrepos, destrepos):