diff --git a/dotdrop/utils.py b/dotdrop/utils.py index 38261f6..2f1419d 100644 --- a/dotdrop/utils.py +++ b/dotdrop/utils.py @@ -273,6 +273,8 @@ def must_ignore(paths, ignores, debug=False): def uniq_list(a_list): """unique elements of a list while preserving order""" new = [] + if not a_list: + return new for elem in a_list: if elem not in new: new.append(elem)