~ubuntu-branches/ubuntu/oneiric/kdeutils/oneiric-proposed

« back to all changes in this revision

Viewing changes to printer-applet/monitor.py

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2011-09-28 12:56:45 UTC
  • Revision ID: package-import@ubuntu.com-20110928125645-2i4v4sivdgytpb4a
Tags: 4:4.7.1-0ubuntu3
* Catch KeyError in printer-applet monitor.py to avoid crash (LP: #629753)
  - debian/patches/printer-applet-monitor.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
400
400
                except cups.IPPError, (e, m):
401
401
                    self.watcher.cups_ipp_error (self, e, m)
402
402
                    jobs[jobid] = {'job-k-octets': 0}
 
403
                except KeyError:
 
404
                    jobs[jobid] = {'job-k-octets': 0}
403
405
 
404
406
                deferred_calls.append ((self.watcher.job_added,
405
407
                                        (self, jobid, nse, event,