summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Metadata.py b/src/lib/Server/Metadata.py
index 9d232d7c5..8eeb1d400 100644
--- a/src/lib/Server/Metadata.py
+++ b/src/lib/Server/Metadata.py
@@ -59,7 +59,7 @@ class Metadata:
self.aliases = {}
self.clientdata = xdata
for client in xdata.findall('./Client'):
- if address in client.attrib:
+ if 'address' in client.attrib:
self.addresses[client.get('address')] = client.get('name')
for alias in [alias for alias in client.findall('Alias') if 'address' in alias.attrib]:
self.addresses[alias.get('address')] = client.get('name')