ふヘヘヘへクラス例外
class myError(object): pass class notFoundError(myError): def __init__(self, exe): self.exe = exe ... try: ... except notFoundError('unique'): ...
みたいなの書いたら
Traceback (most recent call last): File "convert2.py", line 53, in <module> raise notFoundError(exe='unique') TypeError: exceptions must be classes, instances, or strings (deprecated), not notFoundError
って言われた。
myErrorのスーパークラスをExceptionに変えたら普通に行った。
なんでかよくわかんないけど行けた。