Skip to content

Commit

Permalink
add comment about ValidationError import
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Oct 12, 2023
1 parent a70bcc7 commit 22171f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dkist/dataset/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
import asdf

try:
# first try to import from asdf.exceptions for asdf 2.15+
from asdf.exceptions import ValidationError
except ImportError:
# fall back to top level asdf for older versions of asdf
from asdf import ValidationError


Expand Down

0 comments on commit 22171f9

Please sign in to comment.