Skip to content

Commit cd11a1e

Browse files
committed
Fix exception derp.
1 parent bcfe810 commit cd11a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimal-buy-gdax.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def get_prices():
145145
ticker = gdax_client.get_product_ticker(
146146
product_id='{}-{}'.format(c, args.fiat_currency))
147147
if 'price' not in ticker:
148-
raise('no price available for {} ticker={}'.format(c, ticker))
148+
raise(Exception('no price available for {} ticker={}'.format(c, ticker)))
149149
print('{} ticker={}'.format(c, ticker))
150150
prices[c] = float(ticker['price'])
151151
return prices

0 commit comments

Comments
 (0)