Skip to content

Commit 5b232fe

Browse files
committed
[conflict-mediator] Catch merge conflict error
1 parent 9e5f286 commit 5b232fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

conflict_mediator/download.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,7 @@ def setup(verbose: bool = False):
5959

6060
run_command(["git", "checkout", "main"], verbose)
6161
run_command(["git", "merge", "A", "--no-edit"], verbose)
62-
run_command(["git", "merge", "B", "--no-edit"], verbose)
62+
try:
63+
run_command(["git", "merge", "B", "--no-edit"], verbose)
64+
except Exception:
65+
print("Fix the merge conflict in script.py!")

0 commit comments

Comments
 (0)