convert lieuxMariage to string even if it's an empty list

This commit is contained in:
Frédéric Péters 2016-09-26 09:13:02 +02:00
parent 632398eb10
commit 96a3b4855c
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class AuthenticAdapter(DefaultAdapter):
# fix street name
attributes['rue'] = attributes['rue'].split('(')[0]
if attributes.get('lieuxMariage'):
if 'lieuxMariage' in attributes:
# change from list to string
attributes['lieuxMariage'] = '|'.join(attributes.get('lieuxMariage'))