|
11 | 11 | # ANY KIND, either express or implied. See the License for the specific |
12 | 12 | # language governing permissions and limitations under the License. |
13 | 13 | import logging |
14 | | -import re |
15 | 14 | import sys |
16 | 15 |
|
17 | 16 | from awscli.customizations.commands import BasicCommand |
18 | | -from awscli.customizations.exceptions import ParamValidationError |
19 | 17 | from awscli.customizations.utils import validate_mutually_exclusive |
20 | 18 |
|
21 | | -from . import PREDEFINED_SECTION_NAMES, SUBSECTION_TYPE_ALLOWLIST, SubsectionNotFoundError |
| 19 | +from . import ( |
| 20 | + PREDEFINED_SECTION_NAMES, |
| 21 | + SUBSECTION_TYPE_ALLOWLIST, |
| 22 | + SubsectionNotFoundError, |
| 23 | +) |
22 | 24 |
|
23 | 25 | LOG = logging.getLogger(__name__) |
24 | 26 |
|
@@ -180,13 +182,17 @@ def _get_subsection_property(self, section_type, section_name, varname): |
180 | 182 | full_config = self._session.full_config |
181 | 183 |
|
182 | 184 | if section_type not in full_config: |
183 | | - raise SubsectionNotFoundError(f"The config sub-section ({section_name}) could not be found ") |
| 185 | + raise SubsectionNotFoundError( |
| 186 | + f"The config sub-section ({section_name}) could not be found" |
| 187 | + ) |
184 | 188 |
|
185 | 189 | section_type_config = full_config[section_type] |
186 | 190 | section_config = section_type_config.get(section_name, None) |
187 | 191 |
|
188 | 192 | if section_config is None: |
189 | | - raise SubsectionNotFoundError(f"The config sub-section ({section_name}) could not be found ") |
| 193 | + raise SubsectionNotFoundError( |
| 194 | + f"The config sub-section ({section_name}) could not be found" |
| 195 | + ) |
190 | 196 |
|
191 | 197 | # Handle nested properties |
192 | 198 | if '.' in varname: |
|
0 commit comments