Skip to content

Commit 066c64c

Browse files
Replicate the exception handling fix from #2283 (#2287)
Avoid any copy pasta fails if someone cribs from one of these for a future script and replicate the exception handling fix from #2283 to all the scripts.
1 parent ccd8495 commit 066c64c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

tools/datafix/delete_bugs_with_source.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def main() -> None:
7272
# subsequent batches from being attempted.
7373
if args.dryrun and e.args[0].startswith("Dry run mode"):
7474
pass
75+
else:
76+
raise
7577
if len(result) > 0 and not args.dryrun:
7678
print("Deleted!")
7779

tools/datafix/delete_invalid.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def main() -> None:
8787
# subsequent batches from being attempted.
8888
if args.dryrun and e.args[0].startswith("Dry run mode"):
8989
pass
90+
else:
91+
raise
9092
if len(result_to_delete) > 0 and not args.dryrun:
9193
print("Deleted!")
9294

tools/datafix/withdraw_invalid.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def main() -> None:
6464
# subsequent batches from being attempted.
6565
if args.dryrun and e.args[0].startswith("Dry run mode"):
6666
pass
67+
else:
68+
raise
6769
if len(result_to_fix) > 0 and not args.dryrun:
6870
print("Fixed!")
6971

0 commit comments

Comments
 (0)