Parcourir la source

Changes in library require uri to be sqlalchamy url

ogert il y a 2 ans
Parent
commit
90df92a50e
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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: '