LUCIT-Systems-and-Development / unicorn-binance-websocket-api

A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
680 stars 165 forks source link

Cannot use `in` with RuntimeError, must convert to string first. #136

Closed Bosma closed 3 years ago

Bosma commented 3 years ago

PR Details

TypeError: argument of type 'RuntimeError' is not iterable was being raised.

This is because you cannot use in with RuntimeError, must convert to string first. Additionally, you can use an equal sign, but may desire in instead.

Description

Converted RuntimeError to string.

How Has This Been Tested

I'm receiving this RuntimeError after updating to Py3.9 and latest unicorn-binance-websocket-api, so now this exception is succesfully printed and program exited.

Types of changes

Checklist

oliver-zehentleitner commented 3 years ago

Thanks a lot!

oliver-zehentleitner commented 3 years ago

Its released: https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/releases/tag/1.28.0