]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ukify: Use OSError insteead of IOError
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 4 Oct 2024 14:28:33 +0000 (16:28 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 9 Oct 2024 09:58:02 +0000 (11:58 +0200)
The latter was deprecated for the former and is only an alias for it.

src/ukify/ukify.py

index 75ecdb4d38255103b43ce81c1eb6e9a31abc7f6b..8cc44771699bb8ebf39adfe04b8ee58034fdb7f9 100755 (executable)
@@ -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(':')