mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
Replacing old and deprecated raise Exception style (PEP8)
This commit is contained in:
@@ -42,7 +42,7 @@ class Wordlist(object):
|
||||
_ = zipfile.ZipFile(current, 'r')
|
||||
if len(_.namelist()) == 0:
|
||||
errMsg = "no file(s) inside '%s'" % current
|
||||
raise SqlmapDataException, errMsg
|
||||
raise SqlmapDataException(errMsg)
|
||||
self.fp = _.open(_.namelist()[0])
|
||||
else:
|
||||
self.fp = open(current, 'r')
|
||||
|
||||
Reference in New Issue
Block a user