Skip to content

Improve feedback when getting files by ID #51

@touwwouter

Description

@touwwouter

We know the path to hssp and dssp files, so we should provide more user-friendly feedback instead of showing a RunTimeError

Traceback (most recent call last):
  File "/srv/www/xssp-rest/.virtualenvs/xssp-rest/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/srv/www/xssp-rest/xssp-rest/xssp_rest/factory.py", line 104, in __call__
    return TaskBase.__call__(self, *args, **kwargs)
  File "/srv/www/xssp-rest/.virtualenvs/xssp-rest/local/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
    return self.run(*args, **kwargs)
  File "/srv/www/xssp-rest/xssp-rest/xssp_rest/tasks.py", line 189, in get_dssp_redo
    raise RuntimeError("File not found: '{}'".format(dssp_path))
RuntimeError: File not found: '/mnt/cmbi4/dssp_redo/1crn.dssp'

We should also provide links to WHY_NOT
FMT_WHY_NOT_SEARCH_URL = "http://www.cmbi.ru.nl/WHY_NOT2/search/pdbid/{}"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions