Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit d71f299

Browse files
committed
Update deploy script
Update deploy script to raise error when failed to release
1 parent e8fe925 commit d71f299

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tasks.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ def release(context: Context) -> None:
4141
''',
4242
pty=True,
4343
)
44-
except UnexpectedExit:
45-
pass
44+
except UnexpectedExit as exception:
45+
with open(pyproject_path, 'w', encoding='utf-8') as pyproject_file:
46+
pyproject_file.write(pyproject_string)
47+
raise exception
4648

4749
# recover to original
4850
with open(pyproject_path, 'w', encoding='utf-8') as pyproject_file:

0 commit comments

Comments
 (0)