aiidateam / aiida-core

The official repository for the AiiDA code
https://aiida-core.readthedocs.io
Other
411 stars 184 forks source link

Refactor: Replace deprecated `IOError` with `OSError` #6441

Closed sphuber closed 4 weeks ago

sphuber commented 4 weeks ago

Fixes #4082

PEP 3151 reworked the builtin exception hierarchy and IOError was deprecated (kept as an alias) in favor of OSError. The change was implemented in Python 3.3: https://peps.python.org/pep-3151

codecov[bot] commented 4 weeks ago

Codecov Report

Attention: Patch coverage is 44.15584% with 43 lines in your changes are missing coverage. Please review.

Project coverage is 77.70%. Comparing base (ef60b66) to head (5520011). Report is 17 commits behind head on main.

Files Patch % Lines
src/aiida/orm/nodes/data/remote/base.py 9.10% 10 Missing :warning:
src/aiida/transports/plugins/ssh.py 65.00% 7 Missing :warning:
src/aiida/engine/daemon/execmanager.py 20.00% 4 Missing :warning:
src/aiida/transports/plugins/local.py 77.78% 4 Missing :warning:
src/aiida/common/folders.py 0.00% 3 Missing :warning:
src/aiida/cmdline/commands/cmd_data/cmd_remote.py 0.00% 2 Missing :warning:
src/aiida/engine/daemon/client.py 33.34% 2 Missing :warning:
src/aiida/orm/utils/mixins.py 0.00% 2 Missing :warning:
...tools/archive/implementations/sqlite_zip/writer.py 0.00% 2 Missing :warning:
src/aiida/cmdline/commands/cmd_computer.py 0.00% 1 Missing :warning:
... and 6 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6441 +/- ## ========================================== + Coverage 77.51% 77.70% +0.19% ========================================== Files 560 562 +2 Lines 41444 41716 +272 ========================================== + Hits 32120 32410 +290 + Misses 9324 9306 -18 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.