From 3a011da65d1c9580763996ff05d1a21f50d423b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 19 Feb 2017 22:51:09 +0100 Subject: [PATCH] Add missing unicode() wrapper before .format() on QString self.tr return QString, which do not support python's str.format(). Fixes QubesOS/qubes-issues#2637 --- qubesmanager/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 1223f30..d956761 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -1452,8 +1452,9 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow): thread.start() progress = QProgressDialog( - self.tr("{0}
Please wait for the updater to launch..."). - format(vm.name), "", 0, 0) + unicode( + self.tr("{0}
Please wait for the updater to " + "launch...")).format(vm.name), "", 0, 0) progress.setCancelButton(None) progress.setModal(True) progress.show()