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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user