Condense logic to strip tor password newlines
This commit is contained in:
parent
bb2a6edb29
commit
72288ea55f
|
@ -56,8 +56,6 @@ def send_tor_signal(signal: Signal) -> bool:
|
||||||
# Scan for the last line of the file.
|
# Scan for the last line of the file.
|
||||||
for line in conf:
|
for line in conf:
|
||||||
pass
|
pass
|
||||||
secret = line
|
|
||||||
if '\n' in line:
|
|
||||||
secret = line.strip('\n')
|
secret = line.strip('\n')
|
||||||
authenticate_password(c, password=secret)
|
authenticate_password(c, password=secret)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user