From 521bc9c6c01ef973cac987dbc140bff822f9c15b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Behrmann?= Date: Fri, 4 Oct 2024 16:28:33 +0200 Subject: [PATCH] ukify: Use OSError insteead of IOError The latter was deprecated for the former and is only an alias for it. --- src/ukify/ukify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index 75ecdb4d382..8cc44771699 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -1690,7 +1690,7 @@ def apply_config(namespace, filename=None): # The API is not great. read = cp.read(filename) if not read: - raise IOError(f'Failed to read {filename}') + raise OSError(f'Failed to read {filename}') for section_name, section in cp.items(): idx = section_name.find(':') -- 2.47.3