Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37549189
en ru br
Репозитории ALT
S:3.23.8-alt1
5.1: 3.11.5-alt0.M51.1
4.1: 2.8.10-alt2.M41.1
4.0: 2.7.12-alt2.M40.1
+backports:2.8.10-alt2.M40.1
3.0:
+backports:1.6.6a-alt0.M30.4.1
www.altlinux.org/Changes

Группа :: Издательство
Пакет: hplip

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: hplip-error-print.patch
Скачать


diff --git a/hplip/clean.py b/hplip/clean.py
index 3d41f0485..569a7748a 100755
--- a/hplip/clean.py
+++ b/hplip/clean.py
@@ -182,7 +182,7 @@ try:
                         log.error("Cleaning not needed or supported on this device.")
 
                 except Error as e:
-                    log.error("An error occured: %s" % e[0])
+                    log.error("An error occured: %s" % str(e))
 
             else:
                 log.error("Device is busy or in an error state. Please check device and try again.")
diff --git a/hplip/ui/scrollunload.py b/hplip/ui/scrollunload.py
index fdb48e82d..dca71bf9a 100644
--- a/hplip/ui/scrollunload.py
+++ b/hplip/ui/scrollunload.py
@@ -120,7 +120,7 @@ class ScrollUnloadView(ScrollView):
                 self.pc = photocard.PhotoCard(None, self.cur_device.device_uri, self.cur_printer)
             except Error as e:
                 QApplication.restoreOverrideCursor()
-                self.form.FailureUI(self.__tr("An error occured: %s" % e[0]))
+                self.form.FailureUI(self.__tr("An error occured: %s" % str(e)))
                 self.cleanup(EVENT_PCARD_UNABLE_TO_MOUNT)
                 return False
 
diff --git a/hplip/ui4/wifisetupdialog.py b/hplip/ui4/wifisetupdialog.py
index 4beb2e9da..76a7ba644 100644
--- a/hplip/ui4/wifisetupdialog.py
+++ b/hplip/ui4/wifisetupdialog.py
@@ -250,7 +250,7 @@ class WifiSetupDialog(QDialog, Ui_Dialog):
             try:
                 self.dev = device.Device(self.device_uri)
             except Error as e:
-                FailureUI(self, self.__tr("<b>Error opening device:</b><p>%s</p><p>(%s)</p>") %(self.device_uri, QString(e[0])))
+                FailureUI(self, self.__tr("<b>Error opening device:</b><p>%s</p><p>(%s)</p>") %(self.device_uri, QString(str(e))))
 
                 if self.dev is not None:
                     self.dev.close()
@@ -828,7 +828,7 @@ class WifiSetupDialog(QDialog, Ui_Dialog):
 
 
     def showIOError(self, e):
-        FailureUI(self, self.__tr("<b>An I/O error occurred.</b><p>Please check the USB connection to your printer and try again.</p>(%s)" % QString(e[0])))
+        FailureUI(self, self.__tr("<b>An I/O error occurred.</b><p>Please check the USB connection to your printer and try again.</p>(%s)" % QString(str(e))))
 
         if self.dev is not None:
             self.dev.close()
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin