mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-23 14:42:28 +00:00
Fix crash in debug log
This commit is contained in:
parent
0abf2e82d6
commit
30f10a559e
@ -43,7 +43,7 @@ class Response(aiohttp.web.Response):
|
||||
log.debug("%s", request.json)
|
||||
log.info("Response: %d %s", self.status, self.reason)
|
||||
log.debug(dict(self.headers))
|
||||
if hasattr(self, 'body'):
|
||||
if hasattr(self, 'body') and self.body is not None:
|
||||
log.debug(json.loads(self.body.decode('utf-8')))
|
||||
return super().start(request)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user