pipreqs: fix deprecation warning

This commit is contained in:
Michael Wurm 2025-05-08 13:44:40 +02:00
parent 6187c778a3
commit f1c665d73b

View File

@ -147,7 +147,7 @@ def get_all_imports(path, encoding="utf-8", extra_ignore_dirs=None, follow_links
except Exception as exc: except Exception as exc:
if ignore_errors: if ignore_errors:
traceback.print_exc() traceback.print_exc()
logging.warn("Failed on file: %s" % file_name) logging.warning("Failed on file: %s" % file_name)
continue continue
else: else:
logging.error("Failed on file: %s" % file_name) logging.error("Failed on file: %s" % file_name)