Skip to content

Commit

Permalink
Update aiida/orm/utils/links.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sphuber committed Jul 11, 2023
1 parent 37d330d commit c25f52f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aiida/orm/utils/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ def validate_link(
type_check(target, Node, f'target should be a `Node` but got: {type(target)}')

if source.backend != target.backend:
raise ValueError(f'source and target nodes must be stored in the same backend, but got {source.backend} and '
f'{target.backend}')
raise ValueError(
f'source and target nodes must be stored in the same backend, but got {source.backend} and {target.backend}'
)

if source.uuid is None or target.uuid is None:
raise ValueError('source or target node does not have a UUID')
Expand Down

0 comments on commit c25f52f

Please sign in to comment.