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

Oligo Sample Form error if non-number sample ID given #48

Open
graik opened this issue Dec 18, 2017 · 0 comments
Open

Oligo Sample Form error if non-number sample ID given #48

graik opened this issue Dec 18, 2017 · 0 comments
Assignees
Labels

Comments

@graik
Copy link
Owner

graik commented Dec 18, 2017

Reproduce:

  1. new Oligo sample
  2. use ID "rgo0118"
  3. all else as normal,
  4. Save

Error:

Request Method: POST
http://strube.herokuapp.com/rotmic/oligosample/add/?container=93
1.6.11
ValueError
need more than 2 values to unpack
/app/rotmic/forms/sampleForms.py in clean_displayId, line 106
/app/.heroku/python/bin/python
2.7.11
['/app', '/app/.heroku/python/bin', '/app', '/app/.heroku/python/lib/python27.zip', '/app/.heroku/python/lib/python2.7', '/app/.heroku/python/lib/python2.7/plat-linux2', '/app/.heroku/python/lib/python2.7/lib-tk', '/app/.heroku/python/lib/python2.7/lib-old', '/app/.heroku/python/lib/python2.7/lib-dynload', '/app/.heroku/python/lib/python2.7/site-packages', '/app/.heroku/python/lib/python2.7/site-packages/setuptools-32.1.0-py2.7.egg', '/app/.heroku/python/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg']
Mon, 18 Dec 2017 03:31:12 -0500

Request Method: POST
Request URL: http://strube.herokuapp.com/rotmic/oligosample/add/?container=93

Django Version: 1.6.11
Python Version: 2.7.11
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'django_comments',
'ratedcomments',
'south',
'selectable',
'reversion',
'rotmic',
'django.contrib.admin',
'storages')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
112. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/app/rotmic/utils/customadmin.py" in wrapper
64. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
99. response = view_func(request, *args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
52. response = view_func(request, *args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
198. return view(request, *args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/reversion/revisions.py" in do_revision_context
300. return func(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
29. return bound_func(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
99. response = view_func(request, *args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
25. return func(self, *args2, **kwargs2)
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/transaction.py" in inner
371. return func(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/admin/options.py" in add_view
1146. if form.is_valid():
File "/app/.heroku/python/lib/python2.7/site-packages/django/forms/forms.py" in is_valid
129. return self.is_bound and not bool(self.errors)
File "/app/.heroku/python/lib/python2.7/site-packages/django/forms/forms.py" in errors
121. self.full_clean()
File "/app/.heroku/python/lib/python2.7/site-packages/django/forms/forms.py" in full_clean
273. self._clean_fields()
File "/app/.heroku/python/lib/python2.7/site-packages/django/forms/forms.py" in clean_fields
291. value = getattr(self, 'clean
%s' % name)()
File "/app/rotmic/forms/sampleForms.py" in clean_displayId
106. letter, number, suffix = ids.splitSampleId( r )

Exception Type: ValueError at /rotmic/oligosample/add/
Exception Value: need more than 2 values to unpack

@graik graik added the bug label Dec 18, 2017
@graik graik self-assigned this Dec 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant