Skip to content

Commit e3becf6

Browse files
committed
Default to None
1 parent 13c5fba commit e3becf6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter_releaser/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ def retry(cmd, **kwargs):
271271

272272
def read_config():
273273
"""Read the jupyter-releaser config data"""
274-
config = {}
274+
config = None
275+
275276
if JUPYTER_RELEASER_CONFIG.exists():
276277
config = toml.loads(JUPYTER_RELEASER_CONFIG.read_text(encoding="utf-8"))
277278

@@ -286,6 +287,7 @@ def read_config():
286287
if "jupyter-releaser" in data:
287288
config = data["jupyter-releaser"]
288289

290+
config = config or {}
289291
with open(osp.join(HERE, "schema.json")) as fid:
290292
schema = json.load(fid)
291293

0 commit comments

Comments
 (0)