File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
from dotenv import load_dotenv
6
6
from dynaconf import Dynaconf , Validator
7
+ from macrostrat .app_frame .control_command import BackendType
8
+ from macrostrat .utils import get_logger
7
9
from pydantic import BaseModel
8
10
from sqlalchemy .engine import make_url
9
11
from sqlalchemy .engine .url import URL
10
12
from toml import load as load_toml
11
13
12
- from macrostrat .app_frame .control_command import BackendType
13
- from macrostrat .utils import get_logger
14
-
15
14
from .utils import find_macrostrat_config
16
15
17
16
log = get_logger (__name__ )
@@ -99,6 +98,9 @@ def convert_to_string(value):
99
98
# A database connection string for PostgreSQL
100
99
PG_DATABASE = getattr (settings , "pg_database" , None )
101
100
url = None
101
+ # Not sure why this happens
102
+ if PG_DATABASE == "None" :
103
+ PG_DATABASE = None
102
104
# environ.get("MACROSTRAT_PG_DATABASE", None)
103
105
if PG_DATABASE is not None :
104
106
# On mac and windows, we need to use the docker host `host.docker.internal` or `host.lima.internal`, etc.
You can’t perform that action at this time.
0 commit comments