exceptions must be old-style classes or derived from BaseException, not str
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")?
+1
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