From 853c10ca0e022ffb27c5ef432dcde524daa2c3f5 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 16 Sep 2017 12:54:57 +0200 Subject: [PATCH] ensure profile key is a str --- dotdrop/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dotdrop/config.py b/dotdrop/config.py index be5b607..7c7629d 100644 --- a/dotdrop/config.py +++ b/dotdrop/config.py @@ -216,7 +216,9 @@ class Cfg: """ returns a list of dotfiles for a specific profile """ if profile not in self.prodots: return [] - return sorted(self.prodots[profile], key=lambda x: x.key, reverse=True) + return sorted(self.prodots[profile], + key=lambda x: str(x.key), + reverse=True) def get_profiles(self): """ returns all defined profiles """