diff --git a/sqlor/mysqlor.py b/sqlor/mysqlor.py index 6bd060e..7a1473d 100755 --- a/sqlor/mysqlor.py +++ b/sqlor/mysqlor.py @@ -151,9 +151,9 @@ WHERE db: """ dbdesc = self.dbdesc - self.conn = await aiomysql.connect(**desc['kwargs]) + self.conn = await aiomysql.connect(**dbdesc) self.cur = await self.cursor() - aelf.dbname = desc['kwargs']['db'] + aelf.dbname = dbdesc.get('db') async def close(): await self.cursor.close()