Skip to content

Conversation

@srichs
Copy link
Owner

@srichs srichs commented Feb 8, 2026

Motivation

  • Ensure that when a --password (or Windows /password) option is present without a value, code raises a clear ValueError instead of silently returning None or allowing an IndexError later.

Description

  • Update _get_password in src/veracrypt/veracrypt.py to treat an empty string as a missing password and to catch an IndexError when the option is present without a following value, raising ValueError in that case.

Testing

  • No automated tests were run for this change.

Codex Task

@srichs srichs merged commit 12b4492 into main Feb 8, 2026
0 of 2 checks passed
@srichs srichs deleted the codex/review-code-for-improvements branch February 8, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant