Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
demonkit opened this issue Jul 7, 2016 · 2 comments

Comments

@demonkit
Copy link

demonkit commented Jul 7, 2016

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")?

@TreHack
Copy link

TreHack commented May 11, 2017

+1

@TreHack
Copy link

TreHack commented May 11, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants