ogert %!s(int64=3) %!d(string=hai) anos
pai
achega
543588b3b5
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      cdplib/db_handlers/SQLHandler.py

+ 3 - 3
cdplib/db_handlers/SQLHandler.py

@@ -90,9 +90,9 @@ class SQLHandler:
         # 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: '
-             'sqlalchemy_dialect//user:password@host:port/dbname')
+        # assert(re.match(r'.+://.+:(.+)?@.+:.+/.+', db_uri) is not None),\
+        #     ('database url does not match the pattern: '
+        #      'sqlalchemy_dialect//user:password@host:port/dbname')
 
         self._db_uri = db_uri