mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-24 03:02:12 +01:00
in case of a parsing error of netrc, treat it as non-existant. (It turned out that python's netrc parser wouldn't cope with lines not containing a password)
This commit is contained in:
parent
9e10eb40c6
commit
f50176e4f2
@ -604,7 +604,7 @@ def readauth():
|
||||
username, account, password = info.authenticators(netloc)
|
||||
return username, password
|
||||
|
||||
except (IOError, TypeError):
|
||||
except (IOError, TypeError, netrc.NetrcParseError):
|
||||
pass
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user