From: Jörg Behrmann Date: Fri, 4 Oct 2024 14:28:33 +0000 (+0200) Subject: ukify: Use OSError insteead of IOError X-Git-Tag: v257-rc1~279^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=521bc9c6c01ef973cac987dbc140bff822f9c15b;p=thirdparty%2Fsystemd.git ukify: Use OSError insteead of IOError The latter was deprecated for the former and is only an alias for it. --- 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(':')