Browse Source

Changes in library require uri to be sqlalchamy url

ogert 2 years ago
parent
commit
90df92a50e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cdplib/db_handlers/SQLHandler.py

+ 2 - 2
cdplib/db_handlers/SQLHandler.py

@@ -83,8 +83,8 @@ class SQLHandler:
                              cfg["SQL"]["SQL_PORT"],
                              cfg["SQL"]["SQL_DATABASE_NAME"])
 
-        assert(isinstance(db_uri, str)),\
-            "Parameter 'db_uri' must be of type str"
+        # assert(isinstance(db_uri, str)),\
+        #     "Parameter 'db_uri' must be of type str"
 
         assert(re.match(r'.+://.+:(.+)?@.+:.+/.+', db_uri) is not None),\
             ('database url does not match the pattern: '