Skip to content

Commit 48587cc

Browse files
committed
delete unused files and folders, combine exception modules
1 parent 70eaf30 commit 48587cc

File tree

6 files changed

+6
-35
lines changed

6 files changed

+6
-35
lines changed

arho_feature_template/core/exceptions.py

-2
This file was deleted.

arho_feature_template/exceptions.py

+4
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ def __init__(self):
3939
class FeatureNotFoundError(Exception):
4040
def __init__(self, id_: str, layer_name: str):
4141
super().__init__(f"Feature with ID '{id_}' not found for layer {layer_name}")
42+
43+
44+
class UnexpectedNoneError(Exception):
45+
"""Internal QGIS errors that should not be happened"""

arho_feature_template/gui/dialogs/load_plan_dialog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
QTableView,
1919
)
2020

21-
from arho_feature_template.core.exceptions import UnexpectedNoneError
21+
from arho_feature_template.exceptions import UnexpectedNoneError
2222
from arho_feature_template.utils.misc_utils import get_active_plan_id
2323

2424
ui_path = resources.files(__package__) / "load_plan_dialog.ui"

arho_feature_template/models/__init__.py

Whitespace-only changes.

arho_feature_template/models/plan_model_.py

-31
This file was deleted.

arho_feature_template/utils/db_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from qgis.core import QgsProviderRegistry
66

7-
from arho_feature_template.core.exceptions import UnexpectedNoneError
7+
from arho_feature_template.exceptions import UnexpectedNoneError
88

99
LOGGER = logging.getLogger("LandUsePlugin")
1010

0 commit comments

Comments
 (0)