diff options
author | Munyoki Kilyungi | 2022-09-01 16:01:19 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-09-05 12:20:19 +0300 |
commit | 0952533db32a42754fabfbc67e2896dc86922789 (patch) | |
tree | 11efc8fcc4e327eede197f9fcdad0b832e529ce6 /wqflask/base | |
parent | 1551c890f652ddf2cd9ca260b84765e4ccde2318 (diff) | |
download | genenetwork2-0952533db32a42754fabfbc67e2896dc86922789.tar.gz |
Fix failing mapping test by using get to fetch values from a dict
Should a key not exist when running: "my_dict['some_key']", an
exception is raised. As such, use "my_dict.get('some_key')" which
defaults to "None" if a key is non-existent.
* wqflask/wqflask/api/mapping.py (do_mapping_for_api): Replace
instances of "my_dict['some_key']" with "my_dict.get('some_key')".
Diffstat (limited to 'wqflask/base')
0 files changed, 0 insertions, 0 deletions