mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Old exception handling format to new one
This commit is contained in:
parent
ba356baab0
commit
bdc4457f34
11 changed files with 26 additions and 27 deletions
2
thirdparty/gprof2dot/gprof2dot.py
vendored
2
thirdparty/gprof2dot/gprof2dot.py
vendored
|
|
@ -695,7 +695,7 @@ class XmlTokenizer:
|
|||
self.final = len(data) < size
|
||||
try:
|
||||
self.parser.Parse(data, self.final)
|
||||
except xml.parsers.expat.ExpatError, e:
|
||||
except xml.parsers.expat.ExpatError as e:
|
||||
#if e.code == xml.parsers.expat.errors.XML_ERROR_NO_ELEMENTS:
|
||||
if e.code == 3:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue