Skip to content

Commit

Permalink
Make #229 not raise a KeyError exception
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Apr 8, 2019
1 parent 7a37be8 commit 2595586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitshares/market.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def buy(

tx = self.blockchain.finalizeOp(order, account["name"], "active", **kwargs)

if returnOrderId:
if returnOrderId and tx.get("operation_results"):
tx["orderid"] = tx["operation_results"][0][1]
self.blockchain.blocking = prevblocking

Expand Down

0 comments on commit 2595586

Please sign in to comment.