1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-21 18:22:30 +01:00

[oauth] prevent empty browser names

This commit is contained in:
Mike Fährmann 2024-10-01 08:19:55 +02:00
parent 3d4191fc0d
commit 2e87a91e97
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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:")