Skip to content

Commit

Permalink
Font warning message in configtools.py: replace print by `warnings.…
Browse files Browse the repository at this point in the history
…warn`
  • Loading branch information
PierreRaybaut committed Aug 22, 2024
1 parent ce9ce9d commit 239825d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guidata/configtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 ""


Expand Down

0 comments on commit 239825d

Please sign in to comment.