Skip to content

Commit

Permalink
Only warn when part is missing on thread fetch.
Browse files Browse the repository at this point in the history
This metadata isn't strictly requried, but it expected. Replaced error
with a warning log.
  • Loading branch information
Fizzadar committed Oct 16, 2020
1 parent fd58d17 commit 8009308
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kanmail/server/mail/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ def get_email_parts(self, email_uids, part, retry=0):
data_meta = parts.get(part)

if not data_meta:
raise Exception('MISSING PART', uid, part, parts)
self.log(
'warning',
f'Unknown part uid={uid}, part={part}, knownParts={parts}',
)

if body_keyname not in data:
if retry > connection.config.max_attempts:
Expand Down

0 comments on commit 8009308

Please sign in to comment.