Bug 227936

Summary: system-config-printer unhappy when setting a default printer
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.7.52-1.fc6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-15 09:55:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 207681    

Description Michal Jaegermann 2007-02-08 23:16:33 UTC
Description of problem:

Pushing "Make Default Printer" button in "Settings" tab of
configurator resulted in:

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 1080,
in on_btnPMakeDefault_clicked
    if e != cups.HTTP_NOT_FOUND:
UnboundLocalError: local variable 'e' referenced before assignment

This was consistent in subsequent tries until exit.

That printer is a network located printer using built-in JetDirect server,
and Samsung ML-2250 pxlmono driver.

The queue in question is currently the only one so this happens
to be not a big issue in this configuration.  Morever it appears
that the operation actually succeeded because I see in printers.conf
"DefaultPrinter" tag and after a restart "State" says: "This is
the default printer" (but this is the only one).

Version-Release number of selected component (if applicable):
system-config-printer-0.7.50-1.fc7

How reproducible:
see above

Comment 1 Tim Waugh 2007-02-09 10:00:26 UTC
Fixed in CVS.  Thanks for the report!

Comment 2 Tim Waugh 2007-02-09 16:16:12 UTC
Fixed in 0.7.51-1.fc7 for devel.


Comment 3 Tim Waugh 2007-02-13 13:23:28 UTC
FC6 test update: 0.7.52-1.fc6.

Comment 4 Fedora Update System 2007-02-14 20:00:32 UTC
Fixed in update: system-config-printer-0.7.52-1.fc6