warnings.formatwarning(): catch exceptions
Issue #21925: warnings.formatwarning() now catches exceptions on linecache.getline(...) to be able to log ResourceWarning emitted late during the Python shutdown process.
V
Victor Stinner committed
27461683a9491efe58331a695c856fbb28bd4cba
Parent: e0511e7