mirror of
https://github.com/docker/compose.git
synced 2025-07-25 14:44:29 +02:00
Fix script for release file already present case
This avoids a: "AttributeError: 'HTTPError' object has no attribute 'message'" Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
This commit is contained in:
parent
3a3288c54b
commit
917c2701f2
@ -18,7 +18,7 @@ def pypi_upload(args):
|
|||||||
'dist/docker-compose-{}*.tar.gz'.format(rel)
|
'dist/docker-compose-{}*.tar.gz'.format(rel)
|
||||||
])
|
])
|
||||||
except HTTPError as e:
|
except HTTPError as e:
|
||||||
if e.response.status_code == 400 and 'File already exists' in e.message:
|
if e.response.status_code == 400 and 'File already exists' in str(e):
|
||||||
if not args.finalize_resume:
|
if not args.finalize_resume:
|
||||||
raise ScriptError(
|
raise ScriptError(
|
||||||
'Package already uploaded on PyPi.'
|
'Package already uploaded on PyPi.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user