fix exception attributes (#1357)

This commit is contained in:
Michel Oosterhof 2020-06-01 11:23:13 +08:00 committed by GitHub
parent 8b4003e9d6
commit 2ea41be79c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class Output(cowrie.core.output.Output):
self.client = InfluxDBClient(host=host, port=port, ssl=ssl, verify_ssl=ssl)
except InfluxDBClientError as e:
log.msg("output_influx: I/O error({0}): '{1}'".format(
e.errno, e.strerror))
e.code, e.message))
return
if self.client is None: