mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 04:02:32 +01:00
[oauth] prevent empty browser names
This commit is contained in:
parent
3d4191fc0d
commit
2e87a91e97
@ -83,7 +83,7 @@ class OAuthBase(Extractor):
|
|||||||
browser = None
|
browser = None
|
||||||
|
|
||||||
if browser and browser.open(url):
|
if browser and browser.open(url):
|
||||||
name = getattr(browser, "name", "Browser")
|
name = getattr(browser, "name", None) or "Browser"
|
||||||
self.log.info("Opening URL in %s:", name.capitalize())
|
self.log.info("Opening URL in %s:", name.capitalize())
|
||||||
else:
|
else:
|
||||||
self.log.info("Please open this URL in your browser:")
|
self.log.info("Please open this URL in your browser:")
|
||||||
|
Loading…
Reference in New Issue
Block a user