mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 14:26:24 +00:00
Ignore blank lines in auth file
This commit is contained in:
parent
c0bf133ab8
commit
34678f1076
@ -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
|
||||||
username, password = line.split(":")
|
try:
|
||||||
|
username, password = line.split(":")
|
||||||
|
except ValueError:
|
||||||
|
continue
|
||||||
self.auth[username.strip()] = password.strip()
|
self.auth[username.strip()] = password.strip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user