open-reblock / localco.de

http://beta.openreblock.org
3 stars 2 forks source link

Clicking "upload file" produces error #13

Closed danrademacher closed 9 years ago

danrademacher commented 9 years ago

Once I logged in and clicked "upload file" I got this error:

IndexError at /reblock/review/
list index out of range
Request Method: GET
Request URL:    http://openreblock.berkeley.edu/reblock/review/
Django Version: 1.4
Exception Type: IndexError
Exception Value:    
list index out of range
Exception Location: /var/www/openreblock.berkeley.edu/localcode/reblock/views.py in review, line 313
Python Executable:  /usr/bin/python
Python Version: 2.6.6
Python Path:    
['/usr/bin/python',
 '/usr/lib64/python26.zip',
 '/usr/lib64/python2.6',
 '/usr/lib64/python2.6/plat-linux2',
 '/usr/lib64/python2.6/lib-tk',
 '/usr/lib64/python2.6/lib-old',
 '/usr/lib64/python2.6/lib-dynload',
 '/usr/lib64/python2.6/site-packages',
 '/usr/lib64/python2.6/site-packages/gtk-2.0',
 '/usr/lib/python2.6/site-packages',
 '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info',
 '/var/www/openreblock.berkeley.edu',
 '/var/www/openreblock.berkeley.edu/localcode',
 '/']
Server time:    Tue, 7 Jul 2015 10:03:25 -0700
danrademacher commented 9 years ago

Ah, I clicked that without first selecting a file, so there needs to be an error state if no file is selected.

cesandoval commented 9 years ago

extends #6