mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
Ignore blank lines in auth file
This commit is contained in:
parent
c0bf133ab8
commit
34678f1076
1 changed files with 4 additions and 1 deletions
|
@ -84,5 +84,8 @@ class AuthManager(component.Component):
|
||||||
if line.startswith("#"):
|
if line.startswith("#"):
|
||||||
# This is a comment line
|
# This is a comment line
|
||||||
continue
|
continue
|
||||||
|
try:
|
||||||
username, password = line.split(":")
|
username, password = line.split(":")
|
||||||
|
except ValueError:
|
||||||
|
continue
|
||||||
self.auth[username.strip()] = password.strip()
|
self.auth[username.strip()] = password.strip()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue