mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +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
|
||||
|
||||
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())
|
||||
else:
|
||||
self.log.info("Please open this URL in your browser:")
|
||||
|
Loading…
Reference in New Issue
Block a user