Skip to content

Commit a585608

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

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

libero/libero/__init__.py

Lines changed: 1 addition & 5 deletions
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

@@ -41,11 +42,6 @@ def get_libero_path(query_key):
4142
with open(config_file, "r") as f:
4243
config = dict(yaml.load(f.read(), Loader=yaml.FullLoader))
4344

44-
# Give warnings in case the user needs to access the paths
45-
for key in config:
46-
if not os.path.exists(config[key]):
47-
print(f"[Warning]: {key} path {config[key]} does not exist!")
48-
4945
assert (
5046
query_key in config
5147
), f"Key {query_key} not found in config file {config_file}. You need to modify it. Available keys are: {config.keys()}"

0 commit comments

Comments
 (0)