1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 20:05:39 +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

@@ -20,7 +20,7 @@ from dotdrop.logger import Logger
from dotdrop.cfg_aggregator import CfgAggregator
from dotdrop.action import Action
from dotdrop.utils import uniq_list, debug_list, debug_dict
from dotdrop.exceptions import YamlException
from dotdrop.exceptions import YamlException, OptionsException
ENV_PROFILE = 'DOTDROP_PROFILE'
ENV_CONFIG = 'DOTDROP_CONFIG'
@@ -430,4 +430,4 @@ class Options(AttrMonitor):
def _attr_set(self, attr):
"""error when some inexistent attr is set"""
raise Exception(f'bad option: {attr}')
raise OptionsException(f'bad option: {attr}')