Only set error string when dict lookup found no matching key (was setting
it for all failures, potentially masking other exceptions).
1 file changed