Skip to content

Commit

Permalink
Avoid TypeError in rescan
Browse files Browse the repository at this point in the history
  • Loading branch information
BjarniRunar committed Oct 23, 2014
1 parent d1000ef commit 5931dd4
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions mailpile/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,17 +653,21 @@ def parse_status(ui):
session.ui.mark(parse_status(ui))

# Message new or modified, let's parse it.
last_date, a, u = self.scan_one_message(session,
mailbox_idx, mbox, i,
wait=True,
msg_ptr=msg_ptr,
last_date=last_date,
process_new=process_new,
apply_tags=apply_tags,
stop_after=stop_after,
editable=editable,
event=event,
progress=progress)
try:
last_date, a, u = self.scan_one_message(session,
mailbox_idx, mbox, i,
wait=True,
msg_ptr=msg_ptr,
last_date=last_date,
process_new=process_new,
apply_tags=apply_tags,
stop_after=stop_after,
editable=editable,
event=event,
progress=progress)
except TypeError:
a = u = 0

added += a
updated += u

Expand Down

0 comments on commit 5931dd4

Please sign in to comment.