I'm using a module called pywaves for interacting with waves.exchange API. The problem is sometimes when I try to place an order, it gets rejected with an error message:
[ERROR] Order Rejected...
The problem is how to capture this error message in my script. The code that generates the error is:
myOrder = myAddress.sell(assetPair = PRO_WAVES, amount = 1491999999, price = proprice1, matcherFee = 700000, maxLifetime = 3600)
The error does not throw an exception, and is not captured into myOrder. How do I get the data from this error into a variable so I can work with it?