Projet

Général

Profil

0001-wscall-handle-saving-errors-missing-data-9773.patch

Frédéric Péters, 26 janvier 2016 15:35

Télécharger (905 octets)

Voir les différences:

Subject: [PATCH] wscall: handle saving errors missing data (#9773)

 wcs/wf/wscall.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
wcs/wf/wscall.py
32 32

  
33 33
class JournalWsCallErrorPart: #pylint: disable=C1001
34 34
    content = None
35
    data = None
35 36

  
36 37
    def __init__(self, summary, data):
37 38
        self.summary = summary
38
        self.data = data[:10000] # beware of huge responses
39
        if data:
40
            self.data = data[:10000] # beware of huge responses
39 41

  
40 42
    def view(self):
41 43
        if not get_request().get_path().startswith('/backoffice/'):
42
-