Browse Source

Fix empty db_url error message (#758)

Kasun Herath 2 years ago
parent
commit
0e9c39d103
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pynecone/model.py

+ 1 - 1
pynecone/model.py

@@ -16,7 +16,7 @@ def get_engine():
         ValueError: If the database url is None.
     """
     url = get_config().db_url
-    if url is None:
+    if not url:
         raise ValueError("No database url in config")
     return sqlmodel.create_engine(url, echo=False)