diff --git a/fyle_xero_api/logging_middleware.py b/fyle_xero_api/logging_middleware.py index 9cadb484..8d1c65b9 100644 --- a/fyle_xero_api/logging_middleware.py +++ b/fyle_xero_api/logging_middleware.py @@ -33,7 +33,7 @@ def __init__(self, get_response): self.get_response = get_response def __call__(self, request): - if request.method in ['POST', 'PUT'] : + if request.method in ['POST', 'PUT']: try: body_unicode = request.body.decode('utf-8') request_body = json.loads(body_unicode)