May-29-2020, 02:53 PM
I thought all exceptions had the same format. Based on your reply I am guessing that is not true. When I print e, I get this:
[Errno 13] Permission denied
Depending on the permission error the number is different but the format is the same. I tried parsing 'e' but it is not just a string so I could not come up with a way to extract it. I tried using various applications of 'split' but the result is always something odd that is not in the printed string (I get things like '[' and ''', etc)
[Errno 13] Permission denied
Depending on the permission error the number is different but the format is the same. I tried parsing 'e' but it is not just a string so I could not come up with a way to extract it. I tried using various applications of 'split' but the result is always something odd that is not in the printed string (I get things like '[' and ''', etc)