From d1c490204820769b6d20c7eec4435a806ad07810 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Thu, 6 Sep 2012 02:35:37 -0400 Subject: [PATCH] Removes unused CancelSignal. This was only triggered by the now removed Monitor. --- zipline/lines.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/zipline/lines.py b/zipline/lines.py index 5283756f..75c473f0 100644 --- a/zipline/lines.py +++ b/zipline/lines.py @@ -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): """