Skip to content

Commit

Permalink
Fix exception derp.
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Dec 22, 2017
1 parent bcfe810 commit cd11a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimal-buy-gdax.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd11a1e

Please sign in to comment.