We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$ python drugbank_xml_to_sql.py
Traceback (most recent call last): File "drugbank_xml_to_sql.py", line 263, in temp_mesh_ids = m.text.rstrip().split(", ") AttributeError: 'NoneType' object has no attribute 'rstrip'
The text was updated successfully, but these errors were encountered:
Fixing it: {http://www.drugbank.ca}category == Blood and Blood Forming Organs
Sorry, something went wrong.
Fix: starting @ line 260 if(m.tag == '{http://www.drugbank.ca}category'): CATEGORY_NAME = m.text.rstrip().replace('\n', '\n').replace('\r', '\r').replace('|', '|') if(m.tag == '{http://www.drugbank.ca}mesh-id'): if(m.text != None): temp_mesh_ids = m.text.rstrip().split(", ") for index in range(len(temp_mesh_ids)): mesh_ids.append((temp_mesh_ids[index]).replace('[', '').replace(']', ''))
No branches or pull requests
$ python drugbank_xml_to_sql.py
Traceback (most recent call last):
File "drugbank_xml_to_sql.py", line 263, in
temp_mesh_ids = m.text.rstrip().split(", ")
AttributeError: 'NoneType' object has no attribute 'rstrip'
The text was updated successfully, but these errors were encountered: