Changeset 756 for pykota/trunk/bin

Show
Ignore:
Timestamp:
02/08/03 10:38:06 (22 years ago)
Author:
jalet
Message:

Badly placed test

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r750 r756  
    1717# 
    1818# $Log$ 
     19# Revision 1.9  2003/02/08 09:38:06  jalet 
     20# Badly placed test 
     21# 
    1922# Revision 1.8  2003/02/07 22:53:57  jalet 
    2023# Checks if printer name is valid before adding it 
     
    174177                else :     
    175178                    (softlimit, hardlimit) = (prototype["softlimit"], prototype["hardlimit"]) 
    176             if (hardlimit is None) or (softlimit is None) :         
    177                 raise PyKotaToolError, "Both hard and soft limits must be set !  Aborting." 
    178179            if hardlimit is None :     
    179180                hardlimit = softlimit 
     
    182183                softlimit = hardlimit 
    183184                self.logger.message("Undefined soft limit set to %i on printer %s." % (softlimit, printer)) 
     185            if (hardlimit is None) or (softlimit is None) :         
     186                raise PyKotaToolError, "Both hard and soft limits must be set !  Aborting." 
    184187            for name in names : 
    185188                if options["users"] :