mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-05 20:58:42 +02: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:
@@ -604,7 +604,7 @@ def readauth():
|
||||
username, account, password = info.authenticators(netloc)
|
||||
return username, password
|
||||
|
||||
except (IOError, TypeError):
|
||||
except (IOError, TypeError, netrc.NetrcParseError):
|
||||
pass
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user