Enable all flake8-logging-format rules (#164655)

These rules are enabled by removing existing suppressions.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164655
Approved by: https://github.com/janeyx99, https://github.com/mlazos
This commit is contained in:
Yuanyuan Chen
2025-10-19 00:59:28 +00:00
committed by PyTorch MergeBot
parent c4f6619330
commit 3255e7872b
55 changed files with 131 additions and 140 deletions

View File

@ -448,8 +448,8 @@ def load(
f,
expected_opset_version=expected_opset_version,
)
except RuntimeError as e:
log.warning("Ran into the following error when deserializing: %s", e)
except RuntimeError:
log.warning("Ran into the following error when deserializing", exc_info=True)
pt2_contents = PT2ArchiveContents({}, {}, {})
if len(pt2_contents.exported_programs) > 0 or len(pt2_contents.extra_files) > 0: