Changeset 3071 for pykota/trunk/bin

Show
Ignore:
Timestamp:
11/24/06 21:43:24 (18 years ago)
Author:
jerome
Message:

Improved the fix.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r3070 r3071  
    289289        else :         
    290290            if backend == "hp" : 
    291                 printerhostname = destination.split("=")[1] # hp:/net/HP_LaserJet_8000_Series?ip=192.168.100.100 
     291                try : 
     292                    printerhostname = destination.split("=")[1] # hp:/net/HP_LaserJet_8000_Series?ip=192.168.100.100 
     293                except IndexError :     
     294                    self.logdebug("Unsupported hplip URI %s" % device_uri) 
     295                    printerhostname = ""  
    292296            else :     
    293297                while destination.startswith("/") :