Skip to content

Commit 50ed487

Browse files
committed
logging.warn is deprecated
1 parent 9c204d7 commit 50ed487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def convert_req_function_args(func, args: list[str], areaName: str, warn: bool =
328328
value = bool(value)
329329
if warn:
330330
# warning here spam the console if called from rules.py, might be worth to make it a data validation instead
331-
logging.warn(f"A call of the {func.__name__} function in '{areaName}'s requirement, asks for a value of type {argType}\nfor its argument '{info.name}' but an unknown string was passed and thus converted to {value}")
331+
logging.warning(f"A call of the {func.__name__} function in '{areaName}'s requirement, asks for a value of type {argType}\nfor its argument '{info.name}' but an unknown string was passed and thus converted to {value}")
332332

333333
else:
334334
try:

0 commit comments

Comments
 (0)