Skip to content

Commit

Permalink
rename exception to AsdfInfoResolutionError
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Nov 27, 2024
1 parent 2849d74 commit 0e8bd08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions asdf/_node_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re
from collections import namedtuple

from .exceptions import AsdfSchemaResolutionError
from .exceptions import AsdfInfoResolutionError
from .schema import load_schema
from .treeutil import get_children

Expand Down Expand Up @@ -66,7 +66,7 @@ def _get_subschema_for_property(schema, key):
f"schema info could not be determined for {key} since "
f"{len(applicable)} possibly applicable schemas were found."
)
raise AsdfSchemaResolutionError(msg)
raise AsdfInfoResolutionError(msg)

Check warning on line 69 in asdf/_node_info.py

View check run for this annotation

Codecov / codecov/patch

asdf/_node_info.py#L69

Added line #L69 was not covered by tests

return applicable[0]

Expand All @@ -92,7 +92,7 @@ def _get_schema_key(schema, key):
f"schema info could not be determined for {key} since "
f"{len(applicable)} possibly applicable schemas were found."
)
raise AsdfSchemaResolutionError(msg)
raise AsdfInfoResolutionError(msg)

Check warning on line 95 in asdf/_node_info.py

View check run for this annotation

Codecov / codecov/patch

asdf/_node_info.py#L95

Added line #L95 was not covered by tests

return applicable[0]

Expand Down
2 changes: 1 addition & 1 deletion asdf/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class AsdfSerializationError(RepresenterError):
"""


class AsdfSchemaResolutionError(ValueError):
class AsdfInfoResolutionError(ValueError):
"""
An attempt to lookup schema for an attribute failed.
"""

0 comments on commit 0e8bd08

Please sign in to comment.