From 2e87a91e9706a01e85df3164ff0c7f4ccf29cafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 1 Oct 2024 08:19:55 +0200 Subject: [PATCH] [oauth] prevent empty browser names --- gallery_dl/extractor/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/oauth.py b/gallery_dl/extractor/oauth.py index 9d025d5b..e7540f81 100644 --- a/gallery_dl/extractor/oauth.py +++ b/gallery_dl/extractor/oauth.py @@ -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:")