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 8d8555f commit 4aa94caCopy full SHA for 4aa94ca
tutorials.py renamed to check_tutorials.py
@@ -45,10 +45,15 @@ def pattern_found(pattern, html):
45
46
if __name__ == '__main__':
47
tutorial_urls = get_tutorial_urls()
48
+ found = False
49
for url in tutorial_urls:
50
html = url_to_html(url)
- # Check for various errors, warnings
51
+ # Add additional errors, warnings to this list
52
patterns = [r'HTTPError', r'FutureWarning:']
53
for pattern in patterns:
54
if pattern_found(pattern, html):
55
+ found = True
56
print(f'"{pattern}" found in "{url}"')
57
+
58
+ if found:
59
+ raise ValueError("One or more warnings/errors were found")
0 commit comments