From a3278f763797f937bc1bcfbe2573fabcb4cc2dd5 Mon Sep 17 00:00:00 2001 From: Armen Boursalian Date: Sun, 27 Jan 2019 17:04:14 -0800 Subject: [PATCH] Add () to str cat to fix % fmt --- ui/opensnitch/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/opensnitch/service.py b/ui/opensnitch/service.py index 1a99d004..a2c96972 100644 --- a/ui/opensnitch/service.py +++ b/ui/opensnitch/service.py @@ -120,8 +120,8 @@ class UIService(ui_pb2_grpc.UIServicer, QtWidgets.QGraphicsObject): if self._version_warning_shown == False: self._msg.setIcon(QtWidgets.QMessageBox.Warning) self._msg.setWindowTitle("OpenSnitch version mismatch!") - self._msg.setText("You are running version %s of the daemon, while the UI is at version " + \ - "%s, they might not be fully compatible." % (daemon_ver, ui_ver)) + self._msg.setText(("You are running version %s of the daemon, while the UI is at version " + \ + "%s, they might not be fully compatible.") % (daemon_ver, ui_ver)) self._msg.setStandardButtons(QtWidgets.QMessageBox.Ok) self._msg.show() self._version_warning_shown = True