aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2024-01-02 22:59:15 -0600
committerDenis Kenzior <denkenz@gmail.com>2024-01-02 22:59:15 -0600
commita82a2de6b22b6bf612d463a17536c40afe9ec9be (patch)
treed4d61e0b6ad760efafa821d43a0d12a8b22be8e2 /tools
parenteb3cbfc56ca4b5ff18ad5381d1c84c653036d8fa (diff)
downloadofono-a82a2de6b22b6bf612d463a17536c40afe9ec9be.tar.gz
tools: Fix using exception type that was not imported
Diffstat (limited to 'tools')
-rwxr-xr-xtools/umlrunner6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/umlrunner b/tools/umlrunner
index fa46ba123..50b73a50f 100755
--- a/tools/umlrunner
+++ b/tools/umlrunner
@@ -6,7 +6,7 @@
#
# SPDX-License-Identifier: LGPL-2.1-or-later
-from argparse import ArgumentParser
+from argparse import ArgumentParser, ArgumentTypeError
from collections import namedtuple
from shutil import copy, copytree, which, rmtree
import time
@@ -267,13 +267,13 @@ def run_uml(args):
def existing_path(value):
path = os.path.abspath(os.path.expanduser(value))
if not os.path.exists(path):
- raise argparse.ArgumentTypeError(f"{value} does not exist.")
+ raise ArgumentTypeError(f"{value} does not exist.")
return path
def existing_dir(value):
path = os.path.abspath(os.path.expanduser(value))
if not os.path.isdir(path):
- raise argparse.ArgumentTypeError(f"{vale} is not a directory.")
+ raise ArgumentTypeError(f"{vale} is not a directory.")
return path
def expanded_path(value):