mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Further pleasing the pylint gods
This commit is contained in:
parent
1f7ee039ad
commit
f8e9f9c87d
14 changed files with 38 additions and 50 deletions
|
|
@ -79,9 +79,9 @@ class Replication(object):
|
|||
errMsg = "wrong number of columns used in replicating insert"
|
||||
raise SqlmapValueException(errMsg)
|
||||
|
||||
def execute(self, sql, parameters=[]):
|
||||
def execute(self, sql, parameters=None):
|
||||
try:
|
||||
self.parent.cursor.execute(sql, parameters)
|
||||
self.parent.cursor.execute(sql, parameters or [])
|
||||
except sqlite3.OperationalError as ex:
|
||||
errMsg = "problem occurred ('%s') while accessing sqlite database " % getSafeExString(ex, UNICODE_ENCODING)
|
||||
errMsg += "located at '%s'. Please make sure that " % self.parent.dbpath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue