Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url_description_uniqueness_check fails with TypeError on specific metadata record #286

Open
rajeshpandey2053 opened this issue Apr 30, 2024 · 0 comments
Assignees

Comments

@rajeshpandey2053
Copy link
Contributor

rajeshpandey2053 commented Apr 30, 2024

Describe the bug

When running the tests on the concept id C2068391958-LARC_ASDC using the pyQuARC master branch, the check fails with a TypeError, indicating that a NoneType was encountered where a string was expected.

To Reproduce

Steps to reproduce the behavior:

  • Test using C2068391958-LARC_ASDC (umm-c)
  • Run pyQuARC master branch on the record above
  • See the pyQuARC errors for the above record
  • Expected behavior
    "pyquarc_errors": [ { "message": "Running check for the rule: 'url_description_uniqueness_check' failed.", "details": "sequence item 0: expected str instance, NoneType found" } ]

Additional context

When briefly investigated, it seemed like there is an issue with the uniqueness_check function in custom_validator.py file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants