diff --git a/python_smi_tools/rocm_smi.py b/python_smi_tools/rocm_smi.py index 9f046a5339..fa7d2a2323 100755 --- a/python_smi_tools/rocm_smi.py +++ b/python_smi_tools/rocm_smi.py @@ -4287,7 +4287,7 @@ if __name__ == '__main__': if not JSON_DATA['card' + str(device)]: JSON_DATA.pop('card' + str(device)) if not JSON_DATA: - logging.warn("No JSON data to report") + logging.warning("No JSON data to report") sys.exit(RETCODE) if not args.csv: