Zarathustra2 / TradeRepublicApi

Unofficial trade republic API
MIT License
277 stars 68 forks source link

Prevent that None.status_code is accessed and return the result from the login method #3

Closed bufemc closed 3 years ago

bufemc commented 3 years ago

Reproduction: kill the key file and try to authenticate the TR API by running portfolio export, it will fail, because it tries to read the http state property from None, plus the login method seems not to return the result.

Zarathustra2 commented 3 years ago

Thanks so much @bufemc, this is dope!

bufemc commented 3 years ago

Thanks. If it's okay for you you could grant me write/push permissions to this repo - user name is bufemc - but it's also okay if not ,)