Removes unused CancelSignal.

This was only triggered by the now removed Monitor.
This commit is contained in:
Eddie Hebert
2012-09-06 02:35:37 -04:00
parent a4b19f66cb
commit d1c4902048
+1 -11
View File
@@ -83,11 +83,6 @@ import zipline.protocol as zp
log = Logger('Lines')
class CancelSignal(Exception):
def __init__(self):
pass
class SimulatedTrading(object):
def __init__(self,
@@ -184,12 +179,7 @@ class SimulatedTrading(object):
os.kill(ppid, SIGINT)
def handle_exception(self, exc):
if isinstance(exc, CancelSignal):
# signal from monitor of an orderly shutdown,
# do nothing.
pass
else:
self.signal_exception(exc)
self.signal_exception(exc)
def signal_exception(self, exc=None):
"""