From 21a524a513076593e4e7be8bc8781211de328704 Mon Sep 17 00:00:00 2001 From: un-pogaz <46523284+un-pogaz@users.noreply.github.com> Date: Sun, 15 Dec 2024 13:17:48 +0100 Subject: [PATCH] safer setup.py check --- setup/check.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/check.py b/setup/check.py index afe85be24e..eb660591b1 100644 --- a/setup/check.py +++ b/setup/check.py @@ -108,7 +108,10 @@ class Check(Command): self.info('\tChecking', f) if self.file_has_errors(f): self.info('%d files left to check' % (len(dirty_files) - i - 1)) - edit_file(f) + try: + edit_file(f) + except FileNotFoundError: + pass # continue if the configured editor fail to be open if self.file_has_errors(f): raise SystemExit(1) cache[f] = self.file_hash(f)