HomePhabricator

Fix Exception in Queries with totals use case

Authored by JeanFred on Feb 11 2020, 9:58 PM.

Description

Fix Exception in Queries with totals use case

The lookup on the Enum, added in c350e4f7, handles the case
where there is no special grouping (ie, normal Qitem grouping),
by catching a KeyError.

However, the failed Enum lookup throws a ValueError, resulting in:

<class 'ValueError'>
'Q6364924' is not a valid GROUP_MAPPING

Details

Committed
JeanFredFeb 11 2020, 9:58 PM
Parents
R2566:fa12c2142cdb: Adapt queries to handle 'totals' use-case
Branches
Unknown
Tags
Unknown
ChangeId
None