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