Skip to content

Commit

Permalink
fix: more informative error handling of datatypes on load
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Jan 12, 2025
1 parent 346fe4f commit 6be5eec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: Build Arches PostGIS
run-name: Build Arches PostGIS
on: [push]
env:
ARCHES_BASE: flaxandteal/arches-postgis
ARCHES_VERSION: "7.5-dev"
ARCHES_BASE: flaxandteal/arches-base
ARCHES_VERSION: "docker-7.6.4"
REGISTRY: ghcr.io
jobs:
Build-Arches:
Expand Down
13 changes: 10 additions & 3 deletions arches/app/utils/data_management/resource_graphs/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,16 @@ def check_default_configs(default_configs, configs):
"The ontology class of this node does not exist in the indicated ontology scheme."
)
node_config = node.config
default_config = DDataType.objects.get(
datatype=node.datatype
).defaultconfig
try:
default_config = DDataType.objects.get(
datatype=node.datatype
).defaultconfig
except DDataType.DoesNotExist:
logging.error(
"Missing datatype: %s",
node.datatype
)
raise
node.config = check_default_configs(default_config, node_config)

if not hasattr(graph, "cards"):
Expand Down

0 comments on commit 6be5eec

Please sign in to comment.