direct: Fix some more NameErrors

Closes #274
This commit is contained in:
Michael Wass 2018-03-08 11:43:47 +01:00 committed by rdb
parent bfff7e1000
commit b10ee32752
2 changed files with 2 additions and 6 deletions

View File

@ -75,7 +75,7 @@ class PyDatagramIterator(DatagramIterator):
b = self.getUint8()
retVal.append((a, b))
else:
raise Exception("Error: No such type as: " + str(subAtomicType))
raise Exception("Error: No such type as: " + str(subatomicType))
else:
# See if it is in the handy dict
getFunc = self.FuncDict.get(subatomicType)
@ -121,8 +121,4 @@ class PyDatagramIterator(DatagramIterator):
else:
raise Exception("Error: No such type as: " + str(subatomicType))
return retVal

View File

@ -302,7 +302,7 @@ class BoundedSemaphore(Semaphore):
Semaphore.__init__(value)
def release(self):
if self.getCount() > value:
if self.getCount() > self.__max:
raise ValueError
Semaphore.release(self)