Skip to content

Commit

Permalink
[oauth] use defaults when config values are set to None/null
Browse files Browse the repository at this point in the history
(fixes #1778)
  • Loading branch information
mikf committed Aug 21, 2021
1 parent 1f02878 commit 4718f9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def __init__(self, match):
self.cache = config.get(("extractor", self.category), "cache", True)

def oauth_config(self, key, default=None):
return config.interpolate(
("extractor", self.subcategory), key, default)
value = config.interpolate(("extractor", self.subcategory), key)
return value if value is not None else default

def recv(self):
"""Open local HTTP server and recv callback parameters"""
Expand Down

0 comments on commit 4718f9c

Please sign in to comment.