1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 18:34:22 +00:00

exceptions and linting

This commit is contained in:
deadc0de6
2023-02-05 17:58:40 +01:00
committed by deadc0de
parent 82cdbc3703
commit 43b2d9ec54
5 changed files with 29 additions and 12 deletions

View File

@@ -19,7 +19,8 @@ from dotdrop.profile import Profile
from dotdrop.action import Action, Transform
from dotdrop.logger import Logger
from dotdrop.utils import strip_home, debug_list, debug_dict
from dotdrop.exceptions import UndefinedException, YamlException
from dotdrop.exceptions import UndefinedException, YamlException, \
ConfigException
TILD = '~'
@@ -400,7 +401,7 @@ class CfgAggregator:
err = f'{container} does not contain'
err += f' a {keys} entry named {key}'
self.log.err(err)
raise Exception(err)
raise ConfigException(err)
objects.append(obj)
if not islist:
objects = objects[0]