Skip to content

Commit

Permalink
Merge pull request #303 from ckan/decouple-scheming
Browse files Browse the repository at this point in the history
Don't fail if ckanext-scheming is not installed
  • Loading branch information
amercader authored Sep 16, 2024
2 parents d4dfab8 + df23471 commit f18ba7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ckanext/dcat/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
Invalid,
_,
)
from ckanext.scheming.validation import scheming_validator

try:
from ckanext.scheming.validation import scheming_validator
except ImportError:
def scheming_validator(func):
return func


# https://www.w3.org/TR/xmlschema11-2/#gYear
regexp_xsd_year = re.compile(
Expand Down

0 comments on commit f18ba7a

Please sign in to comment.