Fix linting, flake8 and sonarcloud issues

This commit is contained in:
Odd Stråbø 2020-04-19 12:07:55 +02:00
parent 87af711c94
commit 3f63e7c213
27 changed files with 162 additions and 169 deletions

View file

@ -3,16 +3,16 @@ from __future__ import division, absolute_import, print_function, unicode_litera
#################################################################################################
import json
import time
import requests
from six import string_types
from .exceptions import HTTPException
from helper.utils import JsonDebugPrinter
from helper import LazyLogger
from .exceptions import HTTPException
#################################################################################################
LOG = LazyLogger(__name__)
@ -154,9 +154,6 @@ class HTTP(object):
LOG.error("Request missing Schema. " + str(error))
raise HTTPException("MissingSchema", {'Id': self.config.data.get('auth.server', "None")})
except Exception as error:
raise
else:
try:
self.config.data['server-time'] = r.headers['Date']