Comment 8 for bug 131990

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

kagou@satori:~$ cd /usr/share/system-config-printer
kagou@satori:/usr/share/system-config-printer$ python -c 'import cups, ppds;c=cups.Connection();a=c.getPPDs();p=ppds.PPDs(a);print p.getPPDNameFromDeviceID("Canon","iP3000","Canon iP3000")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/share/system-config-printer/ppds.py", line 309, in getPPDNameFromDeviceID
    if uri.startswith ("hp:") or uri.startswith ("hpfax:"):
AttributeError: 'NoneType' object has no attribute 'startswith'
kagou@satori:/usr/share/system-config-printer$