Skip to content

Commit cc3a973

Browse files
committed
fix: only apply raises-exception tags for student notebooks, not instructor
1 parent d4182c3 commit cc3a973

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

generate_book_v2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ def pre_process_notebook(file_path):
235235
content = open_in_colab_new_tab(content)
236236
content = change_video_widths(content)
237237
content = link_hidden_cells(content)
238-
content = tag_cells_allow_errors(content)
238+
if ARG == "student":
239+
content = tag_cells_allow_errors(content)
239240
with open(file_path, "w", encoding="utf-8") as fh:
240241
json.dump(content, fh, indent=1, ensure_ascii=False)
241242

0 commit comments

Comments
 (0)