From 297beaf0fedd297dde6d665bd13c929b95b3d1c4 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 11 Nov 2024 01:12:29 +0800 Subject: HALF WORK: 2024.12.13 --- tools/cru-py/cru/paths.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/cru-py/cru/paths.py') diff --git a/tools/cru-py/cru/paths.py b/tools/cru-py/cru/paths.py index 937d2ac..cdd97fe 100644 --- a/tools/cru-py/cru/paths.py +++ b/tools/cru-py/cru/paths.py @@ -1,7 +1,7 @@ import os from pathlib import Path -from .excp import CruException +from .error import CruException class ApplicationPathError(CruException): @@ -39,7 +39,8 @@ class ApplicationPath: if not self.check_parents(must_exist): return False if not self.path.exists(): - if not must_exist: return False + if not must_exist: + return False raise ApplicationPathError("Mot exist.", self.path) if self.is_dir: if not self.path.is_dir(): -- cgit v1.2.3