We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d258150 commit a10ae06Copy full SHA for a10ae06
tools/check_load_and_images.py
@@ -6,6 +6,8 @@
6
import random
7
import re
8
9
+from execute_notebooks import print_exceptions
10
+
11
12
def main():
13
p = Path('.')
@@ -34,19 +36,7 @@ def main():
34
36
except FileNotFoundError as e:
35
37
exceptions[str(nb_path)].append(str(e))
38
- if exceptions:
- print('⚠️' * 20)
39
- print('\n\nFailures in these notebooks:')
40
- print('\n'.join(exceptions.keys()), '\n\n')
41
42
- for nb, error_list in exceptions.items():
43
- face = random.choice(["😮", "😱", "🤬"])
44
- print(face * 20)
45
- errors = "\n".join(error_list)
46
- print(f'{nb}: \n{errors}')
47
48
- else:
49
- print('🎉🎉 Everything worked! 🎉🎉')
+ print_exceptions(exceptions)
50
51
52
if __name__ == '__main__':
0 commit comments