Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: searching 'gb' in autocomplete and clicking on any resulting G protein gives error 500 #553

@ismaelresp

Description

@ismaelresp

AttributeError at /signprot/gbb1_human/

'NoneType' object has no attribute 'slug'
Request Method: | GET -- | -- ``` http://0.0.0.0:8000/signprot/gbb1_human/ 2.2.17 AttributeError 'NoneType' object has no attribute 'slug' /Users/zhg791/protwis/signprot/views.py in signprotdetail, line 1503 /Users/zhg791/mc3_intel/envs/gpcrdb/bin/python 3.7.16 ['/Users/zhg791/protwis', '/Users/zhg791/.vscode/extensions/ms-python.debugpy-2024.10.0-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd', '/Users/zhg791/mc3_intel/envs/gpcrdb/lib/python37.zip', '/Users/zhg791/mc3_intel/envs/gpcrdb/lib/python3.7', '/Users/zhg791/mc3_intel/envs/gpcrdb/lib/python3.7/lib-dynload', '/Users/zhg791/mc3_intel/envs/gpcrdb/lib/python3.7/site-packages'] Tue, 17 Sep 2024 17:35:16 +0200 ``` Environment:

Request Method: GET
Request URL: http://0.0.0.0:8000/signprot/gbb1_human/

Django Version: 2.2.17
Python Version: 3.7.16
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'debug_toolbar',
'rest_framework',
'rest_framework_swagger',
'polymorphic',
'common',
'api',
'news',
'pages',
'home',
'protein',
'family',
'residue',
'alignment',
'similaritysearch',
'similaritymatrix',
'structure',
'ligand',
'interaction',
'mutation',
'phylogenetic_trees',
'sitesearch',
'build',
'construct',
'tools',
'drugs',
'signprot',
'mutational_landscape',
'contactnetwork',
'seqsign',
'angles',
'hotspots',
'django_rdkit')
Installed Middleware:
('common.middleware.stats.StatsMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback:

File "/Users/zhg791/mc3_intel/envs/gpcrdb/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
34. response = get_response(request)

File "/Users/zhg791/mc3_intel/envs/gpcrdb/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
115. response = self.process_exception_by_middleware(e, request)

File "/Users/zhg791/mc3_intel/envs/gpcrdb/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
113. response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/Users/zhg791/protwis/signprot/views.py" in signprotdetail

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions