Exception when parsing emails: 'tuple' object has no attribute 'patch'

Open
#105 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start in patchwork/bin/parsemail.py at parse_mail around line 714, then trace how content is produced before content.patch is accessed. Reproduce the failure with an affected email or patch and determine why content is a tuple; done means those emails parse without the AttributeError.

Written by the indexing model from the issue text.

Description

domain/mail

That's the traceback I have on some of the patches on fdo:

Traceback (most recent call last):
  File "/srv/patchwork.freedesktop.org/patchwork/bin/parsemail.py", line 826, in main
    return parse_mail(mail)
  File "/srv/patchwork.freedesktop.org/patchwork/bin/parsemail.py", line 714, in parse_mail
   patch = content.patch
AttributeError: 'tuple' object has no attribute 'patch'
Dominant language
Python
Stars
22
Forks
12
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dlespiau/patchwork

All issues in dlespiau/patchwork

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.