Remove any newline from password

merge-requests/21/head
Bob Mottram 2021-03-13 11:15:52 +00:00
parent 45e3ca7d48
commit 398bd246f5
1 changed files with 2 additions and 0 deletions

View File

@ -1799,6 +1799,8 @@ if args.notifications:
print('Specify a password with the --password option') print('Specify a password with the --password option')
sys.exit() sys.exit()
args.password = args.password.replace('\n', '')
proxyType = None proxyType = None
if args.tor or domain.endswith('.onion'): if args.tor or domain.endswith('.onion'):
proxyType = 'tor' proxyType = 'tor'