You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the change to the new SQLAlchemy2 syntax with scalars, this query will never raise the exception.DataIdentifierNotFound, but instead just return an empty scalar.
Best would probably be to join with did table and check if the did exists in the first place. Another option would be, if no result is found, to check for a dataidentifier then.
The text was updated successfully, but these errors were encountered:
Description
Due to the change to the new SQLAlchemy2 syntax with scalars, this query will never raise the exception.DataIdentifierNotFound, but instead just return an empty scalar.
https://github.com/rucio/rucio/blame/6eac5dcc30cb6dac427cbc5070d46c170ae7fedf/lib/rucio/core/did.py#L2035
Steps to reproduce
Rucio Version
master
Additional Information
Best would probably be to join with did table and check if the did exists in the first place. Another option would be, if no result is found, to check for a dataidentifier then.
The text was updated successfully, but these errors were encountered: