summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörg Behrmann <behrmann@physik.fu-berlin.de>2024-10-04 16:28:33 +0200
committerJörg Behrmann <behrmann@physik.fu-berlin.de>2024-10-09 11:58:02 +0200
commit521bc9c6c01ef973cac987dbc140bff822f9c15b (patch)
tree279dbe73e877c870222bee610d5841c230e333df
parentukify: Use non-deprecated import for Sequence (diff)
downloadsystemd-521bc9c6c01ef973cac987dbc140bff822f9c15b.tar.xz
systemd-521bc9c6c01ef973cac987dbc140bff822f9c15b.zip
ukify: Use OSError insteead of IOError
The latter was deprecated for the former and is only an alias for it.
-rwxr-xr-xsrc/ukify/ukify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py
index 75ecdb4d38..8cc4477169 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(':')