only report 'not found' error if item is not found

This commit is contained in:
Josh Wilson 2006-07-20 15:26:14 +00:00
parent 340248c36b
commit 383db87ca4
1 changed files with 3 additions and 2 deletions

View File

@ -40,9 +40,10 @@ class Pool:
"""
if item in self.__free:
self.__free.remove(item)
if item in self.__used:
elif item in self.__used:
self.__used.remove(item)
self.notify.error("item not in pool")
else:
self.notify.error("item not in pool")
def checkout(self):
"""