Skip to content

Commit 4ac07a9

Browse files
committed
fix: redundant warning messages
Signed-off-by: Hao Lin <[email protected]>
1 parent 1269d56 commit 4ac07a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libero/libero/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import warnings
23
import yaml
34
from filelock import FileLock
45

@@ -44,7 +45,7 @@ def get_libero_path(query_key):
4445
# Give warnings in case the user needs to access the paths
4546
for key in config:
4647
if not os.path.exists(config[key]):
47-
print(f"[Warning]: {key} path {config[key]} does not exist!")
48+
warnings.warn(f"{key} path {config[key]} does not exist!")
4849

4950
assert (
5051
query_key in config

0 commit comments

Comments
 (0)