Changeset 3421

Show
Ignore:
Timestamp:
10/04/08 11:08:44 (16 years ago)
Author:
jerome
Message:

Now correctly catches the exception caused by virtual printers.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkprinters

    r3420 r3421  
    6767        try : 
    6868            return cups.doRequest(req).printer["device-uri"][0][1] 
    69         except (AttributeError, IndexError) : 
     69        except (AttributeError, IndexError, KeyError) : 
    7070            self.printInfo(_("Impossible to retrieve %(printername)s's DeviceURI") % locals(), "warn") 
    7171            return ""