From 239825d987710d7b3dbc19f0297b6d8f811a7d84 Mon Sep 17 00:00:00 2001 From: Pierre Raybaut Date: Thu, 22 Aug 2024 15:52:57 +0200 Subject: [PATCH] Font warning message in configtools.py: replace `print` by `warnings.warn` --- guidata/configtools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guidata/configtools.py b/guidata/configtools.py index 6c7b2b7..79f139b 100644 --- a/guidata/configtools.py +++ b/guidata/configtools.py @@ -40,6 +40,7 @@ import os import os.path as osp import sys +import warnings from collections.abc import Callable from typing import TYPE_CHECKING @@ -333,7 +334,7 @@ def get_family(families: str | list[str]) -> str: if font_is_installed(family): return family else: - print("Warning: None of the following fonts is installed: %r" % families) + warnings.warn("None of the following fonts is installed: %r" % families) return ""