new_identity: authenticate with blank password

See https://github.com/user234683/youtube-local/issues/20#issuecomment-716198162
This commit is contained in:
James Taylor 2020-10-25 13:12:49 -07:00
parent 7e5c0bf261
commit 8abfe150f0

View File

@ -112,7 +112,7 @@ class TorManager:
try:
port = settings.tor_control_port
with stem.control.Controller.from_port(port=port) as controller:
controller.authenticate()
controller.authenticate('')
print('new_identity: Getting new identity')
controller.signal(stem.Signal.NEWNYM)
print('new_identity: NEWNYM signal sent')