Skip to content

Commit

Permalink
Merge pull request #11 from curvenote/bug/name
Browse files Browse the repository at this point in the history
🐛  Defend against unknown names
  • Loading branch information
stevejpurves authored Jun 15, 2022
2 parents 07b6b87 + 69f198c commit dd762df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const parseNotebook = (
const children: TranslatedBlockPair[] = notebookAsJson.cells.map((cell) => {
const [content, output] = translateFromJupyter(
cell,
notebookAsJson.metadata.language_info.name,
notebookAsJson?.metadata?.language_info?.name,
);
if (!output || (output as Blocks.Output)?.original?.length === 0) {
return { content } as TranslatedBlockPair;
Expand Down

0 comments on commit dd762df

Please sign in to comment.