diff --git a/resources/lib/helper/loghandler.py b/resources/lib/helper/loghandler.py index 70dd9246..13ec17aa 100644 --- a/resources/lib/helper/loghandler.py +++ b/resources/lib/helper/loghandler.py @@ -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])