From 5d037f8d3a13af58f803ab45ac0efcc71a455104 Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Tue, 1 Dec 2015 20:53:04 -0500 Subject: [PATCH] catch exceptions with price update --- core/watch.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/core/watch.py b/core/watch.py index 24ba6a1..774f230 100644 --- a/core/watch.py +++ b/core/watch.py @@ -22,12 +22,15 @@ def find(api, defId, buy=None, num=0): return (lowest, num) for defId in defIds: - result = find(api, defId) - q.put({ - 'defId': defId, - 'lowestBIN': result[0], - 'num': result[1] - }) + try: + result = find(api, defId) + q.put({ + 'defId': defId, + 'lowestBIN': result[0], + 'num': result[1] + }) + except FutError as e: + q.put(e) def watch(q, api, defIds, length=1200):