From aafd851f569a008f9b0fccf221d61c101eaffbcb Mon Sep 17 00:00:00 2001 From: John Furr Date: Wed, 9 Nov 2016 14:53:43 -0500 Subject: [PATCH] flake8 cleanup --- mongolog/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mongolog/handlers.py b/mongolog/handlers.py index 98e8d17..3a4e503 100644 --- a/mongolog/handlers.py +++ b/mongolog/handlers.py @@ -488,13 +488,13 @@ def emit(self, record): customer_id = self.client_auth.split("/")[-2] log_record['customer_id'] = customer_id - r = requests.post(self.client_auth, json=json.dumps(log_record, default=str), timeout=self.timeout, proxies={'http':''}) # noqa + r = requests.post(self.client_auth, json=json.dumps(log_record, default=str), timeout=self.timeout, proxies={'http': ''}) # noqa # uncomment to debug try: print("Response:", json.dumps(r.json(), indent=4, sort_keys=True, default=str)) except ValueError as e: if "No JSON object could be decoded" in str(e): print("log write failed: ", r) - + # Renable the requests logger request_logger.disabled = True