From 3c5ee552f0d5665c0a44d6aab5b5bfa7061492bd Mon Sep 17 00:00:00 2001 From: Louis-Philippe Huberdeau Date: Thu, 20 Jul 2017 08:50:03 -0400 Subject: [PATCH] Make sure non-optional properties are present --- lib/utils/har.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/utils/har.py b/lib/utils/har.py index 0dfe2a693..7eb0a8bcb 100644 --- a/lib/utils/har.py +++ b/lib/utils/har.py @@ -72,7 +72,11 @@ class Entry: "request": self.request.toDict(), "response": self.response.toDict(), "cache": {}, - "timings": {}, + "timings": { + "send": -1, + "wait": -1, + "receive": -1, + }, "time": int(1000 * (self.endTime - self.startTime)), "startedDateTime": "%s%s" % (datetime.datetime.fromtimestamp(self.startTime).isoformat(), time.strftime("%z")) if self.startTime else None }