24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
diff -up system-config-printer-1.1.90/statereason.py.raw-statereason system-config-printer-1.1.90/statereason.py
|
|
--- system-config-printer-1.1.90/statereason.py.raw-statereason 2010-01-19 11:18:46.000000000 +0000
|
|
+++ system-config-printer-1.1.90/statereason.py 2010-01-25 15:58:21.721083889 +0000
|
|
@@ -141,6 +141,7 @@ class StateReason:
|
|
except (cups.IPPError, OSError):
|
|
pass
|
|
|
|
+ reason = self.get_reason ()
|
|
if self._ppd:
|
|
try:
|
|
schemes = ["text", "http", "help", "file"]
|
|
@@ -152,10 +153,8 @@ class StateReason:
|
|
localized_reason = localized_reason + reason + ", "
|
|
if localized_reason != "":
|
|
reason = localized_reason[:-2]
|
|
- else:
|
|
- reason = self.get_reason()
|
|
except RuntimeError:
|
|
- reason = self.get_reason()
|
|
+ pass
|
|
|
|
text = _("Printer '%s': '%s'.") % (self.get_printer (), reason)
|
|
return (title, text)
|