Timeline for how to handle exceptions in python
Current License: CC BY-SA 3.0
Post Revisions
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 23, 2016 at 9:56 | comment | added | manoj prashant k | @Daniel Roseman thanks for your suggestion. But that is why i have given it as a comment rather than posting it as an answer :) | |
| May 23, 2016 at 9:11 | comment | added | Martijn Pieters | @DanielRoseman: I think they meant to help with debugging; catch all exceptions just to be able to see the type. | |
| May 23, 2016 at 9:11 | comment | added | Daniel Roseman | @manojprashantk please don't suggest things like that. It's a terrible idea to catch all exceptions; only ever catch the ones you are expecting and know how to deal with. | |
| May 23, 2016 at 9:11 | history | edited | Martijn Pieters | CC BY-SA 3.0 |
added 1 character in body; edited tags
|
| May 23, 2016 at 9:08 | vote | accept | carl | ||
| May 23, 2016 at 8:53 | comment | added | manoj prashant k |
u can try except Exception as e: in the next line print e
|
|
| May 23, 2016 at 8:52 | answer | added | Daniil Ryzhkov | timeline score: 4 | |
| May 23, 2016 at 8:51 | comment | added | TigerhawkT3 |
Have you tried except whoosh.index.LockError:?
|
|
| May 23, 2016 at 8:49 | history | asked | carl | CC BY-SA 3.0 |