fixed lint errors

This commit is contained in:
sirferl 2020-09-14 15:56:02 +02:00
parent 5bb0143da4
commit 9778eb7b25
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ def handle_response(my_response):
try: try:
d = json.loads(my_response.content) d = json.loads(my_response.content)
except Exception as e: except Exception as e:
# catch an empty jason object here # catch an empty jason object here
d = {'errors': 'No detailled message'} d = {'errors': 'No detailled message'}
s = my_response.status_code s = my_response.status_code
if s > 399: if s > 399:
@ -107,7 +107,7 @@ class EntrustIssuerPlugin(IssuerPlugin):
key_file = current_app.config.get("ENTRUST_API_KEY") key_file = current_app.config.get("ENTRUST_API_KEY")
user = current_app.config.get("ENTRUST_API_USER") user = current_app.config.get("ENTRUST_API_USER")
password = current_app.config.get("ENTRUST_API_PASS") password = current_app.config.get("ENTRUST_API_PASS")
self.session.cert = (cert_file_path, key_file_path) self.session.cert = (cert_file, key_file)
self.session.auth = (user, password) self.session.auth = (user, password)
self.session.hooks = dict(response=log_status_code) self.session.hooks = dict(response=log_status_code)
# self.session.config['keep_alive'] = False # self.session.config['keep_alive'] = False