|
@@ -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
|