Changeset 749 for pykota/trunk/bin
- Timestamp:
- 02/07/03 23:17:58 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/edpykota
r748 r749 17 17 # 18 18 # $Log$ 19 # Revision 1.7 2003/02/07 22:17:58 jalet 20 # Incomplete test 21 # 19 22 # Revision 1.6 2003/02/07 22:13:13 jalet 20 23 # Perhaps edpykota is now able to add printers !!! Oh, stupid me ! … … 138 141 except ValueError : 139 142 raise PyKotaToolError, "Invalid hardlimit value %s." % options["hardlimit"] 140 if hardlimit < softlimit:143 if (softlimit is not None) and (hardlimit is not None) and (hardlimit < softlimit) : 141 144 # error, exchange them 142 145 self.logger.log_message("Hard limit %i is less than soft limit %i, values will be exchanged." % (hardlimit, softlimit), "warn")