Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macrecovery: Fix ValueError #550

Merged
merged 2 commits into from
Aug 16, 2024
Merged

macrecovery: Fix ValueError #550

merged 2 commits into from
Aug 16, 2024

Conversation

mkorje
Copy link
Contributor

@mkorje mkorje commented Aug 6, 2024

When running the script in a builder, I was getting the error that Image verification failed. (Sign not allowed in string format specifier). If os.get_terminal_size().columns is less than 2 then the align left padding has a negative value, giving the error ValueError: Sign not allowed in string format specifier. I just added a check before the value's use to ensure that it isn't negative.

mkorje and others added 2 commits August 6, 2024 21:31
If `os.get_terminal_size().columns` is less than 2 then the align left padding has a negative value, giving the error `ValueError: Sign not allowed in string format specifier`.
@mikebeaton
Copy link
Contributor

Thank you for pointing out the issue when running headless.

Can you confirm that it works fine for you with my suggested additional commit?

@mkorje
Copy link
Contributor Author

mkorje commented Aug 8, 2024

Yes, I can confirm that it works fine for me with your commit. Thank you for that.

@mikebeaton mikebeaton merged commit a5a5e3e into acidanthera:master Aug 16, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants