diff --git a/addok_usage_name_BAN_FR/utils.py b/addok_usage_name_BAN_FR/utils.py index 46b5302..9ed9358 100644 --- a/addok_usage_name_BAN_FR/utils.py +++ b/addok_usage_name_BAN_FR/utils.py @@ -5,7 +5,7 @@ # Adelans-et-le-Val-de-Bithaine -> Adelans-et-le-Val-de-Bithaine, adelans-et-le-val, adelans # Return full name first def subpart_generator(name): - if '-' not in name: + if not name or '-' not in name: return (name,) s = name.lower().replace('\'', ' ').split('-')