Changeset 886 for pykota/trunk

Show
Ignore:
Timestamp:
04/05/03 11:28:56 (22 years ago)
Author:
jalet
Message:

Unnecessary message was logged

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r873 r886  
    2323# 
    2424# $Log$ 
     25# Revision 1.29  2003/04/05 09:28:56  jalet 
     26# Unnecessary message was logged 
     27# 
    2528# Revision 1.28  2003/03/29 13:45:26  jalet 
    2629# GPL paragraphs were incorrectly (from memory) copied into the sources. 
     
    264267            if hardlimit is None :     
    265268                hardlimit = softlimit 
    266                 self.logger.log_message(_("Undefined hard limit set to soft limit (%s) on printer %s.") % (str(hardlimit), printer)) 
     269                if hardlimit is not None : 
     270                    self.logger.log_message(_("Undefined hard limit set to soft limit (%s) on printer %s.") % (str(hardlimit), printer)) 
    267271            if softlimit is None :     
    268272                softlimit = hardlimit 
    269                 self.logger.log_message(_("Undefined soft limit set to hard limit (%s) on printer %s.") % (str(softlimit), printer)) 
     273                if softlimit is not None : 
     274                    self.logger.log_message(_("Undefined soft limit set to hard limit (%s) on printer %s.") % (str(softlimit), printer)) 
    270275            if (not options["reset"] and not options["noquota"]) and ((hardlimit is None) or (softlimit is None)) : 
    271276                raise PyKotaToolError, _("Both hard and soft limits must be set ! Aborting.")