~brenthuisman/flickrsimplesync

6f3904d11966260e9740b4905585a3c28e97ab6a — faisal 6 years ago d888ca4
fixed browserless auth
1 files changed, 2 insertions(+), 1 deletions(-)

M flickrapi/__init__.py
M flickrapi/__init__.py => flickrapi/__init__.py +2 -1
@@ 656,7 656,8 @@ class FlickrAPI(object):
            browser = webbrowser.get()
        except webbrowser.Error:
            if 'BROWSER' not in os.environ:
                raise
                print 'Please authorize: %s' % auth_url
                return
            browser = webbrowser.GenericBrowser(os.environ['BROWSER'])

        browser.open(auth_url, True, True)