aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/mlia/utils')
-rw-r--r--src/mlia/utils/console.py2
-rw-r--r--src/mlia/utils/logging.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mlia/utils/console.py b/src/mlia/utils/console.py
index 57e3ba2..1f432fb 100644
--- a/src/mlia/utils/console.py
+++ b/src/mlia/utils/console.py
@@ -77,7 +77,7 @@ def _get_table(table_style: str) -> Table:
if table_style == "no_borders":
return Table(show_header=False, box=None)
- raise Exception(f"Unsupported table style {table_style}")
+ raise ValueError(f"Table style {table_style} is not supported.")
def _convert_to_text(*renderables: RenderableType) -> str:
diff --git a/src/mlia/utils/logging.py b/src/mlia/utils/logging.py
index 17f6cae..07b16df 100644
--- a/src/mlia/utils/logging.py
+++ b/src/mlia/utils/logging.py
@@ -181,7 +181,7 @@ def create_log_handler(
handler = logging.StreamHandler(stream)
if handler is None:
- raise Exception("Unable to create logging handler")
+ raise RuntimeError("Unable to create logging handler.")
if log_level:
handler.setLevel(log_level)