Changeset 914 for pykota

Show
Ignore:
Timestamp:
04/15/03 13:09:04 (22 years ago)
Author:
jalet
Message:

Small bug was fixed when a printer was never used and its internal
page counter is not accessible.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pykota

    r909 r914  
    2323# 
    2424# $Log$ 
     25# Revision 1.22  2003/04/15 11:09:04  jalet 
     26# Small bug was fixed when a printer was never used and its internal 
     27# page counter is not accessible. 
     28# 
    2529# Revision 1.21  2003/04/12 17:20:14  jalet 
    2630# Better formula for HP workaround 
     
    217221            # counter in the printer and last page counter taken from the Quota 
    218222            # Storage database for this particular printer 
    219             jobsize = (counterbeforejob - lastpagecounter)     
     223            try : 
     224                jobsize = (counterbeforejob - lastpagecounter)     
     225            except TypeError :     
     226                # never used, and internal page counter not accessible 
     227                jobsize = 0 
     228                 
    220229            if jobsize < 0 : 
    221230                # Probably an HP printer which was switched off and back on,