Project

General

Profile

Development #35573

crash sur saut vers status précédent si celui-ci n'existe pas

Added by Thomas Noël 6 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
26 Aug 2019
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

Actuellement cela provoque une trace à cause d'un "assert", il conviendrait de changer cela en LoggedError, peut-être (il s'agit d'une erreur "fonctionnelle")

Exception:
  type = '<type 'exceptions.AssertionError'>', value = 'failed to compute previous status'

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/formdata.py", line 583, in jump_status
   581         if status_id == '_previous':
   582             previous_status = self.pop_previous_marked_status()
>  583             assert previous_status, 'failed to compute previous status'
   584             status_id = previous_status.id
   585         status = 'wf-%s' % status_id

  locals:
     previous_status = None
     self = <Sur-La-Distribution-D-Eau-Copie-Sa "Sur la distribution d'eau (Copie SA) - n\xc2\xb078-62" id:62>
     status_id = '_previous'

  File "/usr/lib/python2.7/dist-packages/wcs/wf/jump.py", line 41, in jump_and_perform
    39         formdata.update_workflow_data(workflow_data)
    40         formdata.store()
>   41     formdata.jump_status(status)
    42     url = formdata.perform_workflow()
    43     return url

Also available in: Atom PDF