Tor and stem library : non consistent error message with wrong password
I'm writing a little program trying to connect to Tor (v0.2.9.10) using the stem library (v1.5.4).
The problem is that when I'm trying to use a wrong password on purpose I don't get a consistent return. I'm joining both the script I'm using and the log that I'm getting when starting the script.
I start to believe there's a bug somewhere as the code can't really much simpler.
I've taken inspiration from this page : https://stem.torproject.org/api/control.html.