M Halberd/clientlib.py => Halberd/clientlib.py +3 -0
@@ 69,6 69,9 @@ class HTTPError(Exception):
def __str__(self):
return str(self.msg)
+ def __deepcopy__(self, memo):
+ return self
+
class HTTPSError(HTTPError):
"""Generic HTTPS exception"""
M Halberd/crew.py => Halberd/crew.py +1 -1
@@ 171,7 171,7 @@ class ScanState:
"""Returns the reason of the error condition.
"""
self.__mutex.acquire()
- # Since whe don't know what the nature of __error will be we need to
+ # Since we don't know what the nature of __error will be, we need to
# provide a clean copy of it to the caller so that no possible
# references or changes to __error can affect the object we return.
err = copy.deepcopy(self.__error)