Bugfix: open_graphical_browser opens CLI browsers

This commit is contained in:
Markus Unterwaditzer 2015-12-25 21:06:55 +01:00
parent bb4e7b2c0e
commit c0f773214f
2 changed files with 8 additions and 2 deletions

View file

@ -9,6 +9,12 @@ Package maintainers and users who have to manually update their installation
may want to subscribe to `GitHub's tag feed
<https://github.com/untitaker/vdirsyncer/tags.atom>`_.
Version 0.7.5
=============
- Fixed a bug in :storage:`remotestorage` that would try to open a CLI browser
for OAuth.
Version 0.7.4
=============

View file

@ -209,10 +209,10 @@ def open_graphical_browser(url, new=0, autoraise=True):
'w3m'])
for name in webbrowser._tryorder:
browser = webbrowser.get(name)
if browser in cli_names:
if name in cli_names:
continue
browser = webbrowser.get(name)
if browser.open(url, new, autoraise):
return