Fix log error

This commit is contained in:
angelblue05 2018-09-08 14:25:15 -05:00
parent 01a82eee2d
commit 47175fb216

View File

@ -33,7 +33,8 @@ class LogHandler(logging.StreamHandler):
if server.get('AccessToken'):
self.sensitive['Token'].append(server['AccessToken'])
self.sensitive['Server'].append(server['LocalAddress'].split('://')[1])
if server.get('LocalAddress'):
self.sensitive['Server'].append(server['LocalAddress'].split('://')[1])
if server.get('RemoteAddress'):
self.sensitive['Server'].append(server['RemoteAddress'].split('://')[1])