Skip to content

Commit c53d531

Browse files
committed
raise on failed render
1 parent 93ed083 commit c53d531

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

render.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import subprocess
1212

1313

14-
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
14+
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
1515
md = markdown.Markdown(extensions=['meta', 'footnotes'])
1616

1717
packages = {
@@ -50,6 +50,7 @@ def image_from_cell(cell):
5050
except KeyError as e:
5151
logging.error("Can't find image in cell: %s", cell['source'])
5252
raise e
53+
raise Exception("Can't find an image in cell %s", cell['source'])
5354

5455

5556
def source_from_cell(cell):
@@ -83,6 +84,7 @@ def data_from_cell(cell):
8384
except KeyError as e:
8485
logging.error("Can't find data in cell: %s", cell['source'])
8586
raise e
87+
raise Exception("Can't find an dataset in cell %s", cell['source'])
8688

8789

8890
def reorder_meta(meta):

0 commit comments

Comments
 (0)