Skip to content

Commit

Permalink
fix: pcc
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-stoian-zama committed Apr 19, 2024
1 parent 29fa950 commit fa135da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/make_utils/local_link_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def check_content_for_dead_links(
Args:
content (str): The content of the file.
file_path (Path): The path to the file.
cell_id (Optional[int]): the id of the notebook cell
Returns:
List[str]: a list of errors (dead-links) found.
Expand Down Expand Up @@ -139,7 +140,7 @@ def main():
print(f"checking {path}")
with path.open() as file:
nb_structure = json.load(file)
if not "cells" in nb_structure:
if "cells" not in nb_structure:
print(f"Invalid notebook, skipping {path}")
continue
cell_id = 0
Expand Down

0 comments on commit fa135da

Please sign in to comment.