Changeset 692 for tea4cups

Show
Ignore:
Timestamp:
01/25/07 17:43:29 (17 years ago)
Author:
jerome
Message:

Ensures that an incomplete IPP answer doesn't break tea4cups.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups

    r691 r692  
    11391139        try : 
    11401140            john = answer.job["job-originating-host-name"] 
    1141         except KeyError :     
     1141        except (KeyError, AttributeError) :     
    11421142            try : 
    11431143                john = answer.operation["job-originating-host-name"] 
    1144             except KeyError :     
     1144            except (KeyError, AttributeError) :     
    11451145                john = (None, None) 
    11461146        if type(john) == type([]) :                           
     
    11491149        try :         
    11501150            jbing = answer.job["job-billing"] 
    1151         except KeyError :     
     1151        except (KeyError, AttributeError) :     
    11521152            jbing = (None, None) 
    11531153        if type(jbing) == type([]) :