Page MenuHomePhabricator

Fix emails for status 4
Closed, ResolvedPublic

Description

Setting applications to status type 4 (Sent?) is causing our email tasks to error:

Traceback:  

File "/app/TWLight/emails/tasks.py" in update_app_status_on_save
  352.             handlers[handler_key](instance)

Exception Type: KeyError
Exception Value: 4

Event Timeline

Samwalton9-WMF moved this task from Open tasks to Done on the Library-Card-Platform board.

Looks like this code was written before we had a wider range of statuses.

Fixed in https://github.com/WikipediaLibrary/TWLight/pull/276

Samwalton9-WMF triaged this task as Medium priority.