ukify: Use OSError insteead of IOError

The latter was deprecated for the former and is only an alias for it.
This commit is contained in:
Jörg Behrmann
2024-10-09 11:58:02 +02:00
parent 89842331fb
commit 521bc9c6c0
+1 -1
View File
@@ -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(':')