From aa564f47a9a82a75b48354af73d496c928df187a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 3 Sep 2024 10:53:17 +0200 Subject: [PATCH] flash: rename FileNotFoundError -> ClanError --- pkgs/clan-cli/clan_cli/flash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/flash.py b/pkgs/clan-cli/clan_cli/flash.py index 8f306e9c2..c28f826b9 100644 --- a/pkgs/clan-cli/clan_cli/flash.py +++ b/pkgs/clan-cli/clan_cli/flash.py @@ -45,7 +45,7 @@ def list_possible_keymaps() -> list[str]: if not keymaps_dir.exists(): msg = f"Keymaps directory '{keymaps_dir}' does not exist." - raise FileNotFoundError(msg) + raise ClanError(msg) keymap_files = [] @@ -67,7 +67,7 @@ def list_possible_languages() -> list[str]: if not locale_file.exists(): msg = f"Locale file '{locale_file}' does not exist." - raise FileNotFoundError(msg) + raise ClanError(msg) with locale_file.open() as f: lines = f.readlines()