From e8c54229c44b98e0d64fb9cc71cdcae32ec500f9 Mon Sep 17 00:00:00 2001 From: Iason Krommydas Date: Thu, 30 Jan 2025 16:26:48 -0600 Subject: [PATCH 1/2] allow OSErrors in coffea 0.7.x during skipbadfiles --- coffea/processor/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coffea/processor/executor.py b/coffea/processor/executor.py index 502a2eb80..a2dc1880c 100644 --- a/coffea/processor/executor.py +++ b/coffea/processor/executor.py @@ -1339,7 +1339,7 @@ def automatic_retries(retries: int, skipbadfiles: bool, func, *args, **kwargs): except Exception as e: chain = _exception_chain(e) if skipbadfiles and any( - isinstance(c, (FileNotFoundError, UprootMissTreeError)) + isinstance(c, (OSError, UprootMissTreeError)) for c in chain ): warnings.warn(str(e)) From 951f8b14dc359639422ed65a917b0dc3f0afcaf2 Mon Sep 17 00:00:00 2001 From: Iason Krommydas Date: Thu, 30 Jan 2025 16:27:13 -0600 Subject: [PATCH 2/2] black formatting --- coffea/processor/executor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coffea/processor/executor.py b/coffea/processor/executor.py index a2dc1880c..6c4d2882e 100644 --- a/coffea/processor/executor.py +++ b/coffea/processor/executor.py @@ -1339,8 +1339,7 @@ def automatic_retries(retries: int, skipbadfiles: bool, func, *args, **kwargs): except Exception as e: chain = _exception_chain(e) if skipbadfiles and any( - isinstance(c, (OSError, UprootMissTreeError)) - for c in chain + isinstance(c, (OSError, UprootMissTreeError)) for c in chain ): warnings.warn(str(e)) break