Skip to content

Commit

Permalink
Fix bug in merge_match_into_notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Mar 31, 2020
1 parent e8c4db7 commit e05f442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jupyter_cache/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# NOTE: never import anything here, in order to maintain CLI speed
__version__ = "0.2.0"
__version__ = "0.2.1"


def get_cache(path, cache_cls=None):
Expand Down
2 changes: 1 addition & 1 deletion jupyter_cache/cache/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def merge_match_into_notebook(
nb.metadata = cache_nb.metadata
else:
for key in nb_meta:
if key in cache_nb:
if key in cache_nb.metadata:
nb.metadata[key] = cache_nb.metadata[key]
for idx in range(len(nb.cells)):
if nb.cells[idx].cell_type == "code":
Expand Down

0 comments on commit e05f442

Please sign in to comment.