Skip to content

Commit

Permalink
fix: Add better error message when pypi credentials are empty
Browse files Browse the repository at this point in the history
Fixes #96
  • Loading branch information
relekang committed Jan 12, 2019
1 parent 847833b commit c4e5dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion semantic_release/pypi.py
Expand Up @@ -19,7 +19,7 @@ def upload_to_pypi(
:param skip_existing: Continue uploading files if one already exists. (Only valid when
uploading to PyPI. Other implementations may not support this.)
"""
if username is None or password is None:
if username is None or password is None or username == "" or password == "":
raise ImproperConfigurationError('Missing credentials for uploading')
run('python setup.py {}'.format(dists))
run(
Expand Down

0 comments on commit c4e5dcb

Please sign in to comment.