From a75611aff449ff69f0b67d8e5c4b9e655c9d1615 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 22:10:21 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- cola/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cola/core.py b/cola/core.py index 0f753d0a..1485b35a 100644 --- a/cola/core.py +++ b/cola/core.py @@ -486,7 +486,7 @@ def _fdatasync(fd): """fdatasync the file descriptor. Returns True on success""" try: os.fdatasync(fd) - except (IOError, OSError): + except OSError: pass @@ -494,7 +494,7 @@ def _fsync(fd): """fsync the file descriptor. Returns True on success""" try: os.fsync(fd) - except (IOError, OSError): + except OSError: pass -- 2.11.4.GIT