Skip to content

fix: prevent ValueError when slug is missing in upload - #769

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/upload-slug-validation
Open

fix: prevent ValueError when slug is missing in upload#769
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/upload-slug-validation

Conversation

@sentry

@sentry sentry Bot commented Aug 22, 2026

Copy link
Copy Markdown

This PR addresses an issue where the upload command would raise a ValueError: The provided slug is invalid if no --slug argument was provided and the CI adapter could not auto-detect a slug. The None value for slug was being passed to encode_slug(), which then failed validation.

The fix introduces an early validation check within the do_upload_logic function. If the slug parameter is None or otherwise invalid, a click.ClickException is now raised with a clear, user-friendly message. This guides the user to provide the --slug option in the correct format, preventing the unhelpful ValueError and improving the overall user experience.

Fixes CLI-GH

This PR was automatically generated by Sentry. You can adjust this setting at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants