Browse Source

bug fixing

ogert 3 years ago
parent
commit
b4968c3e04
1 changed files with 3 additions and 3 deletions
  1. 3 3
      cdplib/db_handlers/SQLHandler.py

+ 3 - 3
cdplib/db_handlers/SQLHandler.py

@@ -133,17 +133,17 @@ class SQLHandler:
             connection_params = {}
 
             connection_params['user'], connection_params['password'] =\
-                self._db_uri.split('//')[1]\
+                str(self._db_uri).split('//')[1]\
                             .split('@')[0]\
                             .split(':')
 
             connection_params['host'], connection_params['port'] =\
-                self._db_uri.split('//')[1]\
+                str(self._db_uri).split('//')[1]\
                             .split('@')[1]\
                             .split('/')[0]\
                             .split(':')
 
-            connection_params['db'] = self._db_uri.split('/')[-1]\
+            connection_params['db'] = str(self._db_uri).split('/')[-1]\
                                                   .split('?')[0]
 
             return connection_params