The only way this could happen is if we don't enter this loop:
for jobid in xrange (self.fetch_first_job_id, last_jobid + 1):
and the only way I can see of that happening is that last_jobid <
self.fetch_first_job_id.
But the only way I can see that happening is if CUPS returned a job with
a lower ID than we asked for, which is incorrect. I'll put in a check
for this so that system-config-printer is defensive against it, but it
sounds like a CUPS bug to me.
Committed as 83fb5dcafe72bf8a76ded30c268477af48a406bb.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/721051
Title:
system-config-printer.py crashed with UnboundLocalError in
fetch_jobs(): local variable 'jobid' referenced before assignment
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs