aboutsummaryrefslogtreecommitdiff
path: root/scripts/maintenance/README.txt
diff options
context:
space:
mode:
authorMunyoki Kilyungi2022-09-01 16:01:19 +0300
committerBonfaceKilz2022-09-05 12:20:19 +0300
commit0952533db32a42754fabfbc67e2896dc86922789 (patch)
tree11efc8fcc4e327eede197f9fcdad0b832e529ce6 /scripts/maintenance/README.txt
parent1551c890f652ddf2cd9ca260b84765e4ccde2318 (diff)
downloadgenenetwork2-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 'scripts/maintenance/README.txt')
0 files changed, 0 insertions, 0 deletions