Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2025
1 parent 245e77b commit eccef2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/aiida/orm/nodes/data/array/xy.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,5 @@ def get_y(self) -> list[tuple[str, 'ndarray', str]]:
y_arrays.append((y_name, y_arrays))
except (KeyError, AttributeError):
raise NotExistent(f'Could not retrieve array associated with y array {y_name}')
return list(zip(y_names, y_arrays, y_units))

return list(zip(y_names, y_arrays, y_units))
4 changes: 2 additions & 2 deletions src/aiida/transports/plugins/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1375,9 +1375,9 @@ def rename(self, oldpath: TransportPath, newpath: TransportPath):
# why to raise an OSError if the newpath does not exist?
# ofcourse newpath shouldn't exist, that's why we are renaming it!
# issue opened here: https://github.com/aiidateam/aiida-core/issues/6725

if self.isfile(newpath) or self.isdir(newpath):
raise OSError(f"Destination {newpath} already exist")
raise OSError(f'Destination {newpath} already exist')

return self.sftp.rename(oldpath, newpath)

Expand Down

0 comments on commit eccef2c

Please sign in to comment.