https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1718129 Index: ui4/wifisetupdialog.py --- ui4/wifisetupdialog.py.orig +++ ui4/wifisetupdialog.py @@ -329,7 +329,7 @@ class WifiSetupDialog(QDialog, Ui_Dialog): try: self.dev = device.Device(self.device_uri) except Error as e: - FailureUI(self, self.__tr("Error opening device:
%s
(%s)
") %(self.device_uri, QString(e[0]))) + FailureUI(self, self.__tr("Error opening device:%s
(%s)
") %(self.device_uri, QString(e.msg))) if self.dev is not None: self.dev.close() @@ -929,7 +929,7 @@ class WifiSetupDialog(QDialog, Ui_Dialog): def showIOError(self, e): - FailureUI(self, self.__tr("An I/O error occurred.Please check the USB connection to your printer and try again.
(%s)" % QString(e[0]))) + FailureUI(self, self.__tr("An I/O error occurred.Please check the USB connection to your printer and try again.
(%s)" % QString(e.msg))) if self.dev is not None: self.dev.close()