1
0
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:
Dr. Peter Poeml 2006-07-14 16:19:35 +00:00
parent 9e10eb40c6
commit f50176e4f2

View File

@ -604,7 +604,7 @@ def readauth():
username, account, password = info.authenticators(netloc)
return username, password
except (IOError, TypeError):
except (IOError, TypeError, netrc.NetrcParseError):
pass
#