wazo-dird: using invalid CSV file for reverse lookup raises wrong error

Description

Given I have an invalid CSV file (e.g. with an extra or missing separator on one line)
Given this file is configured on reverse lookup
When an incoming call arrives
Then I don't see the caller name
Then there is a KeyError in /var/log/wazo-dird.log (see below for the full traceback)

Expected:

Then there is a "invalid CSV file" error in /var/log/wazo-dird.log

Full traceback:

Activity

Show:
Clément Bourgeois
December 6, 2019, 6:10 PM
Edited

Seems always relevant

Done

Assignee

Pascal Cadotte

Reporter

Sébastien Duthil

Sprint

None

Approvers

Sébastien Duthil