Skip to content

Commit

Permalink
add attempt to import ValidationError
Browse files Browse the repository at this point in the history
first try to import ValidationError from
asdf.exceptions then fallback to importing
from the top level asdf if this fails.
  • Loading branch information
braingram committed Oct 12, 2023
1 parent 4685cec commit 8335518
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dkist/dataset/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
from parfive import Results

import asdf
from asdf.exceptions import ValidationError
try:
from asdf.exceptions import ValidationError
except ImportError:
from asdf import ValidationError


@singledispatch
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ packages = find:
include_package_data = True
install_requires =
appdirs>=1.4
asdf>=2.15.1
asdf>=2.9.2
asdf-astropy>=0.1.1
asdf-transform-schemas>=0.3
asdf-transform-schemas
astropy>=5
dask[array]>=2021.8.0
globus-sdk>=3.0
Expand Down

0 comments on commit 8335518

Please sign in to comment.