From 64c675b7b84b1b8d08bdf7d61c1399e011d605d7 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 20 Jun 2019 15:29:43 +0200 Subject: [PATCH] fix bug for unknown profile --- dotdrop/dotdrop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index cfafad6..6253d3f 100644 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -72,8 +72,8 @@ def cmd_install(o): """install dotfiles for this profile""" dotfiles = o.dotfiles prof = o.conf.get_profile(o.profile) - pro_pre_actions = prof.get_pre_actions() - pro_post_actions = prof.get_post_actions() + pro_pre_actions = prof.get_pre_actions() if prof else [] + pro_post_actions = prof.get_post_actions() if prof else [] if o.install_keys: # filtered dotfiles to install