From d40e7819dcec08d88d0079eba95d113a261af4a9 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 19 Nov 2021 11:55:45 +0100 Subject: [PATCH] handle empty list --- dotdrop/utils.py | 2 ++ 1 file changed, 2 insertions(+) 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)