Skip to main content
6 events
when toggle format what by license comment
Nov 2, 2020 at 21:37 vote accept pstatix
Nov 2, 2020 at 6:32 comment added user377672 [...] your colleagues make changes to the implementation of one of a possibly large list of functions that are directly or indirectly called in the try block.
Nov 2, 2020 at 6:32 comment added user377672 Python is strange to me given how liberally it throws exceptions for things I don't consider that exceptional, but I would still be inclined in many cases to catch as generally, not specifically, as possible in places that perform actual error recovery. The main reason I'd offer that is that unless it's a library that's very well-documented about what a function may throw and never extends that list in the future, it may be difficult to correctly anticipate all possible exceptions that could be thrown in a deeply recursive calling case, not to mention that it might change if one of [...]
Oct 31, 2020 at 11:31 answer added Bart van Ingen Schenau timeline score: 3
Oct 31, 2020 at 7:31 comment added Jasmijn The third attempt is different from the first two, it will only handle creation_errors that happen in the # attempt to write here block, exceptions thrown in the # create new file using custom API block will not be caught by the code in your third attempt.
Oct 31, 2020 at 0:30 history asked pstatix CC BY-SA 4.0