Project

General

Profile

Bug #32259

crash sur absence de catégorie (?)

Added by Frédéric Péters 2 months ago. Updated 2 months ago.

Status:
Solution déployée
Priority:
Normal
Assignee:
-
Start date:
13 Apr 2019
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/wcs_olap/cmd.py", line 112, in main2
    feeder.feed()
  File "/usr/lib/python2.7/dist-packages/wcs_olap/feeder.py", line 499, in feed
    self.do_base_table()
  File "/usr/lib/python2.7/dist-packages/wcs_olap/feeder.py", line 440, in do_base_table
    'category', enumerate(c.name for c in self.categories), comment=u'catégorie')
  File "/usr/lib/python2.7/dist-packages/wcs_olap/feeder.py", line 399, in create_labeled_table
    self.ex(query_str, ctx={'name': name}, vars=list(itertools.chain(*labels)))
  File "/usr/lib/python2.7/dist-packages/wcs_olap/feeder.py", line 306, in ex
    self.cur.execute(sql, vars=vars)
ProgrammingError: syntax error at end of input
LIGNE 1 : INSERT INTO category (id, label) VALUES
                                                  ^

0001-convert-enumerate-generator-into-list-before-checkin.patch View (1.05 KB) Frédéric Péters, 13 Apr 2019 10:27 AM

Associated revisions

Revision f628a6b6 (diff)
Added by Frédéric Péters 2 months ago

convert enumerate/generator into list before checking it't not empty (#32259)

History

#1 Updated by Frédéric Péters 2 months ago

(patch posé sur la prod)

#2 Updated by Benjamin Dauvergne 2 months ago

  • Status changed from Solution proposée to Solution validée

#3 Updated by Christophe Siraut 2 months ago

  • Status changed from Solution validée to Résolu (à déployer)

poussé

#4 Updated by Frédéric Péters 2 months ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF