Skip to content

Commit

Permalink
killed bug in taxon_search function
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Sep 2, 2014
1 parent f7226d9 commit c50abcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bold_retriever/bold_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def taxon_search(obj):
if r.text != "":
response = json.loads(r.text)
if hasattr(response, 'items'):
for k, v in json.loads(r.text).items():
for k, v in response.items():
try:
if v['tax_division'] == 'Animals':
# this is the taxID
Expand Down

0 comments on commit c50abcd

Please sign in to comment.