Skip to content

Commit e439e27

Browse files
committed
Adjusted loading of paleogeography subsystem
1 parent 1e9527c commit e439e27

File tree

1 file changed

+5
-1
lines changed
  • cli/macrostrat/cli/subsystems/paleogeography

1 file changed

+5
-1
lines changed

cli/macrostrat/cli/subsystems/paleogeography/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33

44
from typer import Context, Typer
55

6-
from ...database import get_db
76
from .corelle import build_carto_plate_index, create_corelle_fixtures
7+
from ...database import get_db
88

99

1010
def load_paleogeography_subsystem(app, main, db_subsystem):
11+
if app.settings.pg_database is None:
12+
print("No database configured, skipping corelle subsystem", file=stderr)
13+
return app
14+
1115
try:
1216
environ["CORELLE_DB"] = app.settings.pg_database
1317
from corelle.engine import cli as corelle_cli

0 commit comments

Comments
 (0)