From 9486b7637f4f58a1eac9c9e331150e6dd4948823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 26 Jan 2016 15:33:40 +0100 Subject: [PATCH] wscall: handle saving errors missing data (#9773) --- wcs/wf/wscall.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcs/wf/wscall.py b/wcs/wf/wscall.py index 85ecb09..7341028 100644 --- a/wcs/wf/wscall.py +++ b/wcs/wf/wscall.py @@ -32,10 +32,12 @@ TIMEOUT = 15 class JournalWsCallErrorPart: #pylint: disable=C1001 content = None + data = None def __init__(self, summary, data): self.summary = summary - self.data = data[:10000] # beware of huge responses + if data: + self.data = data[:10000] # beware of huge responses def view(self): if not get_request().get_path().startswith('/backoffice/'): -- 2.7.0