smarkets / smk_python_sdk

Smarkets Python SDK
http://smarkets.github.com/
MIT License
18 stars 11 forks source link

snap_to_decimal can return None #7

Open bootandy opened 7 years ago

bootandy commented 7 years ago

https://github.com/smarkets/smk_python_sdk/blob/master/smarkets/odds.py#L594

snap_to_decimal() snap_to_decimal_move_out_by()

These function can return None. This feels wrong especially for snap_to_decimal().

I think an exception would be neater.