AxmlParserPY icon indicating copy to clipboard operation
AxmlParserPY copied to clipboard

exceptions must be old-style classes or derived from BaseException, not str

Open demonkit opened this issue 9 years ago • 2 comments

Using AxmlParserPY encounters: exceptions must be old-style classes or derived from BaseException, not str I tested on python2.7 or python3.5. I think the error is caused by this statement: raise("ooo")?

demonkit avatar Jul 07 '16 06:07 demonkit

+1

TreHack avatar May 11 '17 12:05 TreHack

File "/usr/local/lib/python2.7/dist-packages/axmlparserpy/apk.py", line 71, in init self.xml[i] = minidom.parseString(AXMLPrinter(self.zip.read(i)).getBuff()) File "/usr/local/lib/python2.7/dist-packages/axmlparserpy/axmlprinter.py", line 37, in init _type = self.axml.next() File "/usr/local/lib/python2.7/dist-packages/axmlparserpy/axmlparser.py", line 59, in next self.doNext() File "/usr/local/lib/python2.7/dist-packages/axmlparserpy/axmlparser.py", line 99, in doNext raise("ooo") TypeError: exceptions must be old-style classes or derived from BaseException, not str

TreHack avatar May 11 '17 12:05 TreHack