Skip to content

Commit 929276b

Browse files
committed
headers can also be empty dict
1 parent 6f0786c commit 929276b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mpcontribs-client/mpcontribs/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def __init__(
573573
if not apikey:
574574
apikey = os.environ.get("MPCONTRIBS_API_KEY")
575575

576-
if apikey and headers is not None:
576+
if apikey and headers:
577577
apikey = None
578578
logger.debug("headers set => ignoring apikey!")
579579

0 commit comments

Comments
 (0)