python: replace IOError with OSError

https://peps.python.org/pep-3151/
This commit is contained in:
Eisuke Kawashima
2022-04-25 16:35:39 +09:00
parent f3ed2a9a51
commit 77530fb0aa
4 changed files with 21 additions and 21 deletions

View File

@@ -26,7 +26,7 @@ def find_version():
if version_match:
return version_match.group(1)
raise Exception('Could not find version string in openbabel/__init__.py.')
except IOError:
except OSError:
raise Exception('Could not find openbabel/__init__.py.')