mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-11-22 10:31:38 +01:00
Update Database.py
This commit is contained in:
parent
089710422d
commit
1b129279bb
@ -61,7 +61,7 @@ class Database:
|
|||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
Logger.dbg("Closing database connection.")
|
Logger.dbg("Closing database connection.")
|
||||||
self.databaseConnection.close()
|
if self.databaseConnection: self.databaseConnection.close()
|
||||||
self.databaseConnection = None
|
self.databaseConnection = None
|
||||||
|
|
||||||
def connection(self, host, user, password, db = None):
|
def connection(self, host, user, password, db = None):
|
||||||
|
Loading…
Reference in New Issue
Block a user