From cd11a1e1648e6687760e48e5148694d0e703974e Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Fri, 22 Dec 2017 07:49:54 -0500 Subject: [PATCH] Fix exception derp. --- optimal-buy-gdax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimal-buy-gdax.py b/optimal-buy-gdax.py index 964a9a1..94c4f92 100755 --- a/optimal-buy-gdax.py +++ b/optimal-buy-gdax.py @@ -145,7 +145,7 @@ def get_prices(): ticker = gdax_client.get_product_ticker( product_id='{}-{}'.format(c, args.fiat_currency)) if 'price' not in ticker: - raise('no price available for {} ticker={}'.format(c, ticker)) + raise(Exception('no price available for {} ticker={}'.format(c, ticker))) print('{} ticker={}'.format(c, ticker)) prices[c] = float(ticker['price']) return prices