9d520b7312
This logged an error on Windows: ERROR misc networkmanager:on_authentication_required:269 Unable to read the netrc file Traceback (most recent call last): File "c:\python34\Lib\netrc.py", line 27, in __init__ file = os.path.join(os.environ['HOME'], ".netrc") File "C:\Users\florian\buildbot\slave\win8\build\.tox\py34\lib\os.py", line 633, in __getitem__ raise KeyError(key) from None KeyError: 'HOME' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\florian\buildbot\slave\win8\build\qutebrowser\browser\network\networkmanager.py", line 262, in on_authentication_required net = netrc.netrc() File "c:\python34\Lib\netrc.py", line 29, in __init__ raise OSError("Could not find .netrc: $HOME is not set") Since this case is pretty common, we don't want to log it - and checking the variable beforehand is easier than parsing the exception message. This should fix the failing tests on Windows. |
||
---|---|---|
.. | ||
__init__.py | ||
filescheme.py | ||
networkmanager.py | ||
networkreply.py | ||
pastebin.py | ||
proxy.py | ||
qutescheme.py | ||
schemehandler.py |