Project

General

Profile

Actions

Anomalie #1184

closed

OPE export : simple export not working whereas complete works

Added by Yann Le Jeune about 11 years ago. Updated about 11 years ago.

Status:
Résolu
Priority:
Haut
Assignee:
Category:
-
Target version:
Start date:
13 March 2013
Due date:
% Done:

0%

Estimated time:
Élément(s):
Difficulté:

Description

UnboundLocalError at /get-operation/csv

local variable 'lbl' referenced before assignment

Request Method: GET

Request URL: http://192.168.100.204/get-operation/csv

Django Version: 1.4.5

Exception Type: UnboundLocalError

Exception Value:

local variable 'lbl' referenced before assignment

Exception Location: /srv/ishtar/archaeological_operations/models.py in year_index, line 166

Python Executable: /usr/bin/python

Python Version: 2.7.3

Python Path:

['/usr/lib/python2.7',

'/usr/lib/python2.7/plat-linux2',

'/usr/lib/python2.7/lib-tk',

'/usr/lib/python2.7/lib-old',

'/usr/lib/python2.7/lib-dynload',

'/usr/local/lib/python2.7/dist-packages',

'/usr/lib/python2.7/dist-packages',

'/usr/lib/python2.7/dist-packages/PIL',

'/usr/lib/pymodules/python2.7',

'/srv/ishtar/',

'/usr/local/lib/',

'/usr/local/lib/']

Server time: mer, 13 Mar 2013 22:29:35 +0100

Traceback Switch to copy-and-paste view

/usr/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response


                            response = callback(request, *callback_args, **callback_kwargs)


    ...

▶ Local vars

/srv/ishtar/ishtar_common/views.py in func


                                new_vals.append(getattr(val, ky))


    ...

▶ Local vars

/srv/ishtar/archaeological_operations/models.py in year_index


            lbl = u"%d-%s%s" % (self.year, (3-len(lbl))*"0", lbl)


    ...

▶ Local vars 
Actions #1

Updated by Étienne Loks about 11 years ago

  • Status changed from Nouveau to Résolu
Actions

Also available in: Atom PDF