Condense logic to strip tor password newlines

This commit is contained in:
Ben Busby 2022-07-06 09:31:11 -06:00 committed by GitHub
parent bb2a6edb29
commit 72288ea55f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,8 +56,6 @@ def send_tor_signal(signal: Signal) -> bool:
# Scan for the last line of the file.
for line in conf:
pass
secret = line
if '\n' in line:
secret = line.strip('\n')
authenticate_password(c, password=secret)
else: