mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +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("#"):
|
||||
# This is a comment line
|
||||
continue
|
||||
username, password = line.split(":")
|
||||
try:
|
||||
username, password = line.split(":")
|
||||
except ValueError:
|
||||
continue
|
||||
self.auth[username.strip()] = password.strip()
|
||||
|
|
Loading…
Add table
Reference in a new issue