File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,13 @@ def tag_and_generate_changelog(new_version_num):
65
65
66
66
67
67
def upload_sdist (new_version_num ):
68
- call_bash_script ('twine upload "dist/Appium-Python-Client-{}.tar.gz"' .format (new_version_num ))
68
+ push_file = 'dist/Appium-Python-Client-{}.tar.gz' .format (new_version_num )
69
+ try :
70
+ call_bash_script ('twine upload "{}"' .format (push_file ))
71
+ except Exception as e :
72
+ print ('Failed to upload {} to pypi. '
73
+ 'Please fix the original error and push it again later. Original error: {}' .format (
74
+ push_file , e ))
69
75
70
76
71
77
def push_changes_to_master (new_version_num ):
@@ -81,7 +87,7 @@ def ensure_publication(new_version_num):
81
87
for line in sys .stdin :
82
88
if line .rstrip ().lower () == 'y' :
83
89
return
84
- exit ('Canceled release pricess .' )
90
+ exit ('Canceled release process .' )
85
91
86
92
87
93
def build_sdist ():
You can’t perform that action at this time.
0 commit comments