Skip to content

Commit f981a5f

Browse files
committed
raise value error on failure
1 parent 9a594d3 commit f981a5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testing/install_pyodide_libs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ async def main():
6464
lectures_py = list(glob.glob(PY_FILES_DIR + '/*.py'))
6565
previously_installed = set()
6666
for file in lectures_py:
67-
await install_missing_libraries(file, previously_installed)
67+
try:
68+
await install_missing_libraries(file, previously_installed)
69+
except Exception as e:
70+
raise ValueError(f"failed to install library in file: {file}")
6871

6972

7073
if __name__ == '__main__':

0 commit comments

Comments
 (0)