Hi, I'm having a problem with exception handling....thi s is the error message that I get with my code:
raise ReadError("not a bzip2 file")
ReadError: not a bzip2 file
so to handle it I'm trying this:
but that doesn't work. I looked through the list of Standard Exceptions but didn't see 'ReadError' on the list. What should I be using?
raise ReadError("not a bzip2 file")
ReadError: not a bzip2 file
so to handle it I'm trying this:
Code:
try: bzip.decompress(test_list)
except: ReadError
continue
Comment