Skip to content

Fix AttributeError on notmuch errors#117

Open
The-Compiler wants to merge 2 commits intoakissinger:masterfrom
The-Compiler:fix-error-message-display
Open

Fix AttributeError on notmuch errors#117
The-Compiler wants to merge 2 commits intoakissinger:masterfrom
The-Compiler:fix-error-message-display

Conversation

@The-Compiler
Copy link
Collaborator

@The-Compiler The-Compiler commented Jan 5, 2026

This was added in 9a6dc59 together with passing text=True to subprocess.run().

However, with text=True, CalledProcessError.stderr is also already str, not bytes.

Thanks to @omega-800 for spotting this!

cc @laarmen

@The-Compiler The-Compiler changed the title Fix AttriuteError on notmuch errors Fix AttributeError on notmuch errors Jan 5, 2026
This was added in 9a6dc59
together with passing text=True to subprocess.run().

However, with text=True, CalledProcessError.stderr is also
already str, not bytes.
@The-Compiler The-Compiler force-pushed the fix-error-message-display branch from fcd0549 to 722ee16 Compare January 5, 2026 11:56
@omega-800
Copy link

I can verify that this commit fixes the error, thank you! :)

@The-Compiler
Copy link
Collaborator Author

I also added a second commit making it clearer that the error is from notmuch, not from Dodo. Otherwise, this can be a bit confusing:

image

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.

2 participants