diff options
author | Jörg Behrmann <behrmann@physik.fu-berlin.de> | 2024-10-04 16:28:33 +0200 |
---|---|---|
committer | Jörg Behrmann <behrmann@physik.fu-berlin.de> | 2024-10-09 11:58:02 +0200 |
commit | 521bc9c6c01ef973cac987dbc140bff822f9c15b (patch) | |
tree | 279dbe73e877c870222bee610d5841c230e333df | |
parent | ukify: Use non-deprecated import for Sequence (diff) | |
download | systemd-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-x | src/ukify/ukify.py | 2 |
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(':') |