Merge pull request #71 from OpenKMIP/bug/fix-server-log-pep8

Fixing pep8 errors for the KMIP server
This commit is contained in:
Peter Hamilton 2015-08-04 08:28:47 -04:00
commit fe1c586035
1 changed files with 2 additions and 1 deletions

View File

@ -66,11 +66,12 @@ class KMIPServer(object):
factory = KMIPProtocolFactory()
protocol = factory.getProtocol(connection)
try:
while True:
self._processor.process(protocol, protocol)
except Exception as e:
self.logger.error('KMIPServer {0} {1}'.format(type(e),e))
self.logger.error('KMIPServer {0} {1}'.format(type(e), e))
connection.close()
def _set_variables(self, host, port, keyfile, certfile, cert_reqs,