Skip to content
New issue

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

ValueError: invalid literal for int() with base 10: '' (api/utils.py:216) #320

Open
alanbchristie opened this issue Apr 12, 2022 · 0 comments

Comments

@alanbchristie
Copy link
Collaborator

While testing an experimental stack I stumbled upon numerous ValueError exceptions from the apu/util.py module while trying to display vectors. The full stack trace is: -

Internal Server Error: /viewer/img_from_smiles/
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py", line 179, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/code/viewer/views.py", line 1335, in img_from_smiles
    return get_params(smiles, request)
  File "/code/api/utils.py", line 285, in get_params
    request.GET["atom_indices"], mol
  File "/code/api/utils.py", line 216, in parse_atom_ids
    atom_ids.append(int(spl_list[i]))
ValueError: invalid literal for int() with base 10: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant