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 4d3af90 commit 3ada479Copy full SHA for 3ada479
scripts/color.py
@@ -22,7 +22,8 @@ def guard(f):
22
def g(*args, **kwargs):
23
try:
24
f(*args, **kwargs)
25
- except Exception as e:
+ # we want to catch SystemExit and KeyboardInterrupt too
26
+ except BaseException as e:
27
print(Colors.END, end = "")
28
raise e
29
return g
scripts/linkfix.py
@@ -64,7 +64,11 @@
64
65
if broken == 0:
66
success("All links are uptodate, not any broken links.")
67
+elif len(replacements) == 0:
68
+ success(f"Didn't change any links.")
69
else:
70
+ warning("Make sure you made no mistake and press Enter to proceed.")
71
+ input()
72
success(f"Changed {len(replacements)}/{broken} broken links.")
73
74
for record, replacement in replacements:
0 commit comments