From 520defd30122bb239edc7328bd6e74a92ec4ff84 Mon Sep 17 00:00:00 2001 From: BjornArnelid Date: Thu, 3 Apr 2014 21:48:19 +0200 Subject: [PATCH] Replaced tab with spaces.. --- mozdef.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mozdef.py b/mozdef.py index 988bcc8..834ee3a 100644 --- a/mozdef.py +++ b/mozdef.py @@ -14,9 +14,9 @@ import pytz import json import socket try: - from requests_futures.sessions import FuturesSession as Session + from requests_futures.sessions import FuturesSession as Session except ImportError: - from requests import Session + from requests import Session class MozDefError(Exception): def __init__(self, msg): @@ -78,8 +78,8 @@ class MozDefMsg(): raise MozDefError('Summary is a required field') if self.debug: - print(json.dumps(log_msg, sort_keys=True, indent=4)) - return + print(json.dumps(log_msg, sort_keys=True, indent=4)) + return try: r = self.httpsession.post(self.mozdef_hostname, json.dumps(log_msg, sort_keys=True, indent=4), verify=self.verify_certificate, background_callback=self.httpsession_cb)