Skip to content

Commit

Permalink
fix(quotation): fix easyquotation push error
Browse files Browse the repository at this point in the history
  • Loading branch information
shidenggui committed Sep 22, 2016
1 parent b56d845 commit 7d58eb1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions easyquant/push_engine/base_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
import time
from threading import Thread

import aiohttp

from easyquant.event_engine import Event

ACCOUNT_OBJECT_FILE = 'account.session'


class BaseEngine:
"""行情推送引擎基类"""
Expand All @@ -32,7 +28,7 @@ def push_quotation(self):
while self.is_active:
try:
response_data = self.fetch_quotation()
except aiohttp.errors.ServerDisconnectedError:
except:
self.wait()
continue
event = Event(event_type=self.EventType, data=response_data)
Expand Down

0 comments on commit 7d58eb1

Please sign in to comment.